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


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

Though this works, the ternary operator, like the grep and map operators, should not really be use in void context.
if (open(FH,"<".$log) { print "opened\n"; } else { print "unable to open $!\n"; }
is preferred.


Who is Kayser Söze?