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."
In reply to Re: How do you move within an array using foreach?
by JaWi
in thread How do you move within an array using foreach?
by P0w3rK!d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |