[ale] sed

James Sumners james.sumners at gmail.com
Fri Mar 28 18:47:38 EDT 2008


I'm not regex wizard, but I'm pretty sure the $ is being interpreted
as a regex command and not a reference to the variable 'email'. You
would have to at least escape it with a backslash.

2008/3/28 Terry Bailey <terry at bitlinx.com>:
>
>  Hi,
>
>  I have a Perl problem.
>
>  $email = xyx at abc.net
>
>  -e 's/laplace/$email/'
>
>  sed will not completely replace "laplace"  with the value in $email because
> everything is lost starting with the "@" and ending with the "c".
>
>
>  Any help would be appreciated.
>
>  Thanks.
>
>  Terry Bailey
>
> _______________________________________________
>  Ale mailing list
>  Ale at ale.org
>  http://mail.ale.org/mailman/listinfo/ale
>
>



-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59


More information about the Ale mailing list