Keep It Simple, Stupid | |
PerlMonks |
Re^3: Testing <> for undefinedby Roy Johnson (Monsignor) |
on Jul 08, 2004 at 16:57 UTC ( [id://372856]=note: print w/replies, xml ) | Need Help?? |
I have to say that I hate your use of the trinary operator there. You're expressing that you want to assign die's result to $file. Instead:
(as a bonus, you don't have the redundant mention of $ARGV[0]). Better, if the filename might be zero:
We're not really tightening our belts, it just feels that way because we're getting fatter.
In Section
Seekers of Perl Wisdom
|
|