Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 taking refuge in the Monastery: (18)
As of 2015-07-06 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls