Welcome to the Monastery | |
PerlMonks |
Re: File open issueby jwkrahn (Abbot) |
on Dec 20, 2012 at 04:13 UTC ( [id://1009683]=note: print w/replies, xml ) | Need Help?? |
Quotes on a bareword hash key are redundant.
You shouldn't quote variables: What's wrong with always quoting "$vars"? You are adding extra work for perl which has to interpolate the variable and then copy its contents to the string. Because open returns true on success or false on failure you could simply do:
The parentheses are superfluous because an array already provides list context.
In Section
Seekers of Perl Wisdom
|
|