Just another Perl shrine | |
PerlMonks |
Re^3: warning: use of uninitialized valueby Discipulus (Canon) |
on Jun 25, 2015 at 09:40 UTC ( [id://1131931]=note: print w/replies, xml ) | Need Help?? |
for the OP might be worth only add few words about || and or: the high precedence || is valid and right as we put parens, without parens has another effect:
Just think of "and" and "or" as being the same as && and ||, but so low on the precedence chart that parenthesis are usually unnecessary to keep the things on the left or on the right properly grouped. It is almost always considered better to use "or" instead of "||" when you work with open.is a quote from a a very useful post about idioms and precedences: Perl Idioms Explained - && and || "Short Circuit" operators L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|