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 | |
|
Re^2: map and regexp. An newbie question
by nando (Acolyte) on Oct 19, 2011 at 15:44 UTC |