Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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.

Replies are listed 'Best First'.
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 having an uproarious good time at the Monastery: (9)
As of 2016-06-24 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (322 votes). Check out past polls.