in reply to Re: What does this mean
in thread Code explanation needed (was: What does this mean)
Sure, you can use LABELs to reduce what I might term "flag variables", or variables that merely represent a condition, but with a little re-engineering, you can usually eliminate those and still not use LABELs.sub foo { my ($ary1, $ary2) = @_; foreach my $wid (@$ary1) { foreach my $jet (@$ary2) { last if ($wid > $jet); $wid += $jet; } } return; } foo(\@ary1, \@ary2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What does this mean
by Abigail-II (Bishop) on Jun 10, 2002 at 15:32 UTC |