Hello, I'd like to give you a good article for the wonderful introduce for perl's map,sort and grep.See here: http://web.archive.org/web/20041123005900/http://www.raycosoft.com/rayco/support/perl_tutor.html Hope it's useful. -jeff -----Original Message----- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Wed, 13 Sep 2006 9:38 PM Subject: about map usage
Hi all, In perlfaq4.pod I see one line: my %hash = map { $_, 1 } @array; What is the usage of 1 in this code? Thanks, Li __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> ________________________________________________________________________ Check out the new AOL. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.