On Sunday 09 December 2007 14:23, yitzle wrote: > > Can the following code be done without any "code blocks"? > do {print "$_\n" if($_ > 3);} for (0..5);
$_ > 3 and print "$_\n" for 0 .. 5; print map $_ > 3 ? "$_\n" : (), 0 .. 5; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/