and there's also while, until and for:return unless ($i <= 0);
print "i = $i\n" while ($i++ < 10); $i = 0; print "i = $i\n" until ($i++ >= 10); print "$_\n" for (1..10); # note: for my $i ... doesn't work
In reply to Re: Are there any other statements that are like return if...?
by pc88mxer
in thread Are there any other statements that are like return if...?
by skrapasor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |