[ABE.pm] Re: perl regex Q

Jim Eshleman jce0 at Lehigh.EDU
Tue Dec 14 19:51:31 CST 2004


>>Likely not as fast as a regex but *maybe* easier to understand.
> 
> 
> That's a joke, right? :-)
> 
> (Someday I'll learn what map does too!)

   Well, yeah, in this case that's a joke I guess.

   Map isn't really hard.  You're doing something with each element of a 
list (in an expression or code block where $_ is set to each element of 
the list) and it returns a list of the results.  You can always code a 
for loop instead, the map is just more concise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.pm.org/archives/abe-pm/attachments/20041214/363c882b/signature.bin


More information about the ABE-pm mailing list