Perl map Function Tutorial

Category: CGI and Perl - Miscellaneous

Learn through script examples how to use the Perl map function to either run a block or an expression against each element of a list. There are provided a lot of commented examples to help you better understand how to use the map function in your scripts. The examples include: get a list with the squares of the first 10 positive integers; apply a function to a list; a map, grep and sort example; how to use map to read data from a csv file; how to make a hash out of a delimited string and much more. Date: 25 July, 2011


Advertisements



Perl Map - Map Perl - Perl Map Function - Map Vs Grep

Homepage: http://www.misc-perl-info.com/perl-map.html

Developer: Mihael Avram

License: Freeware

Operating System: Linux, Unix, Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0