[tpm] Replace a string with the result of shell command

Antonio Sun antoniosun at lavabit.com
Sat Jan 9 10:58:25 PST 2010

On Sat, Jan 9, 2010 at 1:27 PM, Indy Singh <indy at indigostar.com> wrote:

>  This might be closer to what you want:
> $v = 'AAabcDDabc';
> $v =~ s/abc/`echo $& | rev`/eg;

Yep, that works fine. thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20100109/3da547ee/attachment.html>

More information about the toronto-pm mailing list