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 :)
In reply to Re^4: basic question:how to print a reversed array from STDIN
by Corion
in thread basic question:how to print a reversed array from STDIN
by brant_chen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |