Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Another 'ode to backslash' ;-)

by hopes (Friar)
on Oct 02, 2001 at 19:00 UTC ( [id://116235]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Another 'ode to backslash' ;-)
in thread Another 'ode to backslash' ;-)

There is an error in your code. See perldoc perlop
or see perlop

q/STRING/
'STRING'
A single-quoted, literal string. A backslash represents a
backslash unless followed by the delimiter or another backslash,
in which case the delimiter or backslash is interpolated.


So '\' don't is what you expect. You have to write '\\' instead.
Yeah, it's tricky. Note that
print '\\\machine';
is the same as
print '\\\\machine';
but not
print '\\machine';
You can use q;\\; if you want to obfuscate more.

Regards

Hopes

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://116235]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.