Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: problems with tr///;

by $code or die (Deacon)
on Sep 26, 2001 at 00:35 UTC ( [id://114672]=note: print w/replies, xml ) Need Help??


in reply to Re: problems with tr///;
in thread problems with tr///;

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://114672]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-23 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found