in reply to Re^3: basic question:how to print a reversed array from STDIN
in thread basic question:how to print a reversed array from STDIN
No - map returns a new list, so changing $_ makes little sense. Either use a foreach if you want to do an inplace modification of a list or return a fresh list and try to keep away from changing the list alias :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: basic question:how to print a reversed array from STDIN
by holli (Abbot) on Dec 04, 2008 at 13:01 UTC | |
by ikegami (Patriarch) on Dec 04, 2008 at 13:09 UTC | |
by brant_chen (Initiate) on Dec 05, 2008 at 03:53 UTC |