in reply to problems with tr///;

try s/\\//g; or better s#\##g; OEzzi

Replies are listed 'Best First'.
Re: Re: problems with tr///;
by $code or die (Deacon) on Sep 26, 2001 at 00:35 UTC
    s#\##g doesn't work. The substitution is incomplete. Tack another # on the end and see what happens:
    $_ = '\\##hello world'; s#\##g#; print;
    You still need to escape the "\" regardless of what seperator you use. The # seperator is useful for "/"

    Simon Flack ($code or die)
    $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
    =~y'_"' ';eval"die";print $_,lc substr$@,0,3;