A perl question

brian lists at karas.net
Tue Apr 20 12:10:01 EDT 2004


On Tue, 2004-04-20 at 11:54, Bob Bell wrote:
> $ perl -pe '$tag="MyTag";$other="MyOtherTag";s/::(\w+)/${$1}/ge;' <<< "foo ::tag ::other"
> foo MyTag MyOtherTag
> 
> Key bit there is "/e".

Worked perfect!  Thanks Bob, and Jim, for the help.
-- 
brian <lists at karas.net>




More information about the gnhlug-discuss mailing list