in reply to Re: Improve foreach with help of map?
in thread Improve foreach with help of map?
$ perl -wE '{map {say; last if /3/} 1..5}' 1 2 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Improve foreach with help of map?
by ikegami (Patriarch) on Oct 09, 2009 at 14:47 UTC | |
|