Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Looking for discussions of "block after or" syntax errorby davido (Cardinal) |
on May 01, 2013 at 21:04 UTC ( [id://1031646]=note: print w/replies, xml ) | Need Help?? |
print returns false on failure, in which case the 'and' would short-circuit and exit would never get called. Granted, it's pretty unusual for print to fail -- so rare that we rarely test for success in our prints, and usually don't think in terms of "this could fail", but when you absolutely positively want to exit, don't include a logical test on print's success. Dave
In Section
Seekers of Perl Wisdom
|
|