Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Backslashes in command arguements

by Joost (Canon)
on Feb 26, 2007 at 17:07 UTC ( [id://602172]=note: print w/replies, xml ) Need Help??


in reply to Backslashes in command arguements

perl is parsing the backslashes correctly; backslashes are used as an escape character in string literals. You need 2 backslashes for each backslash in the resulting string.

print "\\\n"; # prints a \ and a newline print "\\\\hostname" # prints \\hostname

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2025-03-24 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (65 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.