northernbloke
Programmer
I am a recent perler... I have perl 5 on my box. I am digging my way through perl and I have come across the map function.
@newlist = map(&mysub($_), @list);
is this better/worse than foreach - or are they the same thing ??
@newlist = map(&mysub($_), @list);
is this better/worse than foreach - or are they the same thing ??