go ahead... be a heretic | |
PerlMonks |
Re: Should I fear eval? (want to do two things on the left side of an if/unless)by Corion (Patriarch) |
on Aug 10, 2006 at 12:17 UTC ( [id://566599]=note: print w/replies, xml ) | Need Help?? |
And should I fear trying to do more than one "semicolon-separated thing" on the left side of an if/unless statement? Yes :-). I'd use do{...} over eval{...} because do doesn't have the nasty habit of eating fatal errors unless I explicitly check for them. I'd still reverse the logic and put the consequent to the right side:
In Section
Seekers of Perl Wisdom
|
|