brycen has asked for the wisdom of the Perl Monks concerning the following question:
One can apply a conditional to a bare statement. Is there a way to apply it a block of statements using the same style? For example:
$true = 1; print "eenie\n" if $true; print "meenie\n" if $true; {print "miney\n"; print "moh\n";} if $true;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Conditional for statement block (not just bare statement)
by jeffa (Bishop) on Dec 16, 2008 at 20:44 UTC | |
by oko1 (Deacon) on Dec 17, 2008 at 01:24 UTC | |
Re: Conditional for statement block (not just bare statement)
by ikegami (Patriarch) on Dec 16, 2008 at 20:32 UTC | |
Re: Conditional for statement block (not just bare statement)
by sundialsvc4 (Abbot) on Dec 17, 2008 at 01:17 UTC |
Back to
Seekers of Perl Wisdom