Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: map and regexp. An newbie question

by ikegami (Pope)
on Oct 19, 2011 at 07:42 UTC ( #932317=note: print w/ replies, xml ) Need Help??


in reply to map and regexp. An newbie question

You might be interested in learning about List::MoreUtils's apply and Algorithm::Loops's Filter.

my @a = apply { s/a/X/g } qw( arriba abajo ); # XrribX XbXjo

They're not particularly useful in addressing your specific example, though.


Comment on Re: map and regexp. An newbie question
Select or Download Code
Re^2: map and regexp. An newbie question
by anneli (Pilgrim) on Oct 19, 2011 at 08:26 UTC

    Wow; I started digging into L::MU to find out what trickery was required to let the anonymous subroutine sit there unadorned, then found myself reading perlsub for half an hour! Thanks!

Re^2: map and regexp. An newbie question
by nando (Acolyte) on Oct 19, 2011 at 15:44 UTC

    Ikegami Thanks!, I will put it in the "todo's" stack.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932317]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-10-21 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (103 votes), past polls