in reply to
"if" and compound statement
You can combine statements with "do", like so:
do { statement; statement } if $condition;
[download]
Comment on
Re: "if" and compound statement
Download
Code
In Section
Seekers of Perl Wisdom