Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: problems with tr///;

by Anonymous Monk
on Sep 25, 2001 at 23:09 UTC ( [id://114633]=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://114633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found