nmerriweather has asked for the wisdom of the Perl Monks concerning the following question:
i know there's some way to do this in perl using map, i just can't figure it out.myInts= [ int(i) for i in getItems() ]
( y , m , d )= [ int(i) for i in date.split('-') ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: list comprehension
by duckyd (Hermit) on Aug 25, 2006 at 19:01 UTC | |
by jwkrahn (Abbot) on Aug 25, 2006 at 19:38 UTC | |
by nmerriweather (Friar) on Aug 25, 2006 at 19:26 UTC | |
by Not_a_Number (Prior) on Aug 25, 2006 at 20:28 UTC |