in reply to Re: arrays: shifting in while loop
in thread arrays: shifting in while loop
my @a = (3, 4); while (do { say "yo"; @a }) { say "hi mom"; shift @a; # no explicit loop break out } say "bye mom"; __END__ yo hi mom yo hi mom yo bye mom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: arrays: shifting in while loop
by AnomalousMonk (Archbishop) on Mar 07, 2012 at 15:17 UTC | |
by repellent (Priest) on Mar 07, 2012 at 17:07 UTC |