Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932317]
[LanX]: better try 3
[shmem]: that python stuff is none of my business.
[shmem]: but sometimes I have to debug things implemeted by "the other team" and stick their nose into their dirt.
[shmem]: because it affects "my team"
[shmem]: ah well... git is incomplete. There are commands missing:
[shmem]: git stop crap
[shmem]: for instance

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2018-03-20 18:35 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (257 votes). Check out past polls.