in reply to list comprehension
Note that int operates on $_ by default, the above is equivalent to map { int($_) }my ( $y, $m, $d ) = map { int } split /-/, '2006-04-03.14159';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: list comprehension
by jwkrahn (Abbot) on Aug 25, 2006 at 19:38 UTC | |
|
Re^2: list comprehension
by nmerriweather (Friar) on Aug 25, 2006 at 19:26 UTC | |
by Not_a_Number (Prior) on Aug 25, 2006 at 20:28 UTC |