Mandar Rahurkar wrote:
This was posted some time back by gunnar. How does this exactly
work? Can someone point to help on map ?
my %myNEWhash =
map { $_, delete $myhash{$_} } grep /^1\D/, keys %myhash;
You obviously should have put that line in its right context. It was
suggested in connection with Edward's question:
http://www.nntp.perl.org/group/perl.beginners/67638
and it combines the grep(), delete() and map() functions.
Now, if what you want to do is learning how the map() function works,
the above line may not be the best starting-point, but you'd better
start with studying the docs for map():
perldoc -f map
or
http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/func/map.html
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>