go ahead... be a heretic | |
PerlMonks |
Re: adding an IF to a pushby Zaxo (Archbishop) |
on Jun 28, 2006 at 03:48 UTC ( [id://557917]=note: print w/replies, xml ) | Need Help?? |
Your proposed if form is correct. The parens are unnecessary for a "statement modifier" if like that, but they don't do any harm if you prefer to keep them. You can link two conditions with and if you want to fail unless both are true. The additional processing you need can be wrapped up in a do block.
After Compline,
In Section
Seekers of Perl Wisdom
|
|