Do you know where your variables are? | |
PerlMonks |
Re^2: Perl Idioms Explained - !!exprby davidrw (Prior) |
on Nov 05, 2005 at 02:55 UTC ( [id://505935]=note: print w/replies, xml ) | Need Help?? |
I would also mention just a simple ternary operator as an alternative:
or, more generally the equivalent to !!$expr is (some of the parens are optional depending on context):
In Section
Tutorials
|
|