![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^4: asterisk useby Hofmator (Curate) |
on Jan 11, 2007 at 14:38 UTC ( #594162=note: print w/replies, xml ) | Need Help?? |
$foo && $bar && print "something"; is equivalent to print "something" if $foo && $bar;. The last && is necessary in your code because only that makes the whole thing one expression.
-- Hofmator Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Seekers of Perl Wisdom
|
|