http://www.perlmonks.org?node_id=310426


in reply to Re: open failure code
in thread open failure code

You could also use this type of contruct

open(FH,"<".$log) ? print "opened\n" : print "unable to open $!\n";
it's not any better at all just making you aware of another option.


Grygonos