#!/usr/bin/perlWhat made it even confusing was that commenting out autodie allowed close to at least (silently) fail and return a false value (without even an error message in $! as would be expected). I used autodie to catch any unchecked errors, dammit, not to hide them even further!
open FALSE, "|-", "false";
print FALSE "Hello world!";
say "Closing filehandle:";
close FALSE or die "close() doesn't die...";
say "...but doesn't succeed either";
I guess that's what I get for living a life sheltered away from the raw, bare-metal, non-child-proof world of C programming. :)
Post a Comment