in reply to How do you move within an array using foreach?
While not tested, I saw this elegant solution in this node:
Credits go to zigdon... ;-)print if /\[foo\]/ .. /\[foo2\]/ foreach ( @lines );
Update: Check Ovid's answer; it's more strict in the requirements set.
-- JaWi
"A chicken is an egg's way of producing more eggs."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How do you move within an array using foreach?
by jbeninger (Monk) on Oct 10, 2002 at 18:51 UTC | |
by Anonymous Monk on Oct 10, 2002 at 19:02 UTC | |
by flounder99 (Friar) on Oct 10, 2002 at 19:10 UTC | |
by JaWi (Hermit) on Oct 10, 2002 at 19:10 UTC | |
by thelenm (Vicar) on Oct 10, 2002 at 19:04 UTC |
In Section
Seekers of Perl Wisdom