in reply to Re: Re: Using s///e and it just doesn't feel right
in thread Using s///e and it just doesn't feel right
When the map function is used as you suggest above, it is being called in void context, which I agree is not as good as for. Having said that, I would suggest that a more perlish idiom of saying the above would not require calling map in void context at all:
print map "$_\n", @array;
And better still:
print join "\n", @array;
Just some thoughts.
|
|---|