Personally, I find for-as-foreach more useful:
for my $i(0..$#array) { #same thing as your C-like for stuff; }
=cut
--Brent Dax
@HPAJ=split("", "rekcaH lreP rentonA tsuJ"); print reverse @HPAJ; #sucky but who cares?
In reply to Re: RE: My favorite looping mechanism in Perl is:
by BrentDax
in thread My favorite looping mechanism in Perl is:
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |