in reply to map hash instead of map array
"I have decided I love map and want to use it for everything."
map() builds and returns a list. (Or, in scalar context, the number of elements in the list constructed.)
Don't use map() unless you intend to make use of the list returned. (Or the scalar containing the number of elements.)
Update: As Juerd points out, map() returns a list or the number of scalars in the list. Not an array as I initially stated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: map hash instead of map array
by Juerd (Abbot) on Apr 04, 2002 at 14:03 UTC |