foreach my $element ( @array ) { print "\"$element\"\n"; do_something($element); }An explicit loop variable helps express the code's intention, which helps when some poor fool has to pick up the code six months later.
In reply to Re: What Is Going On Here ?????
by dws
in thread What Is Going On Here ?????
by orthanc
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |