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.
Who is Kayser Söze?
is preferred.if (open(FH,"<".$log) { print "opened\n"; } else { print "unable to open $!\n"; }
Who is Kayser Söze?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: open failure code
by davido (Cardinal) on Nov 27, 2003 at 05:47 UTC |
In Section
Seekers of Perl Wisdom