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

Re: slashes in single-quoted string

by trwww (Priest)
on Apr 29, 2011 at 21:34 UTC ( #902080=note: print w/replies, xml ) Need Help??


in reply to slashes in single-quoted string

For me, its enough to have a personal rule that if a string contains ' (or " when I'm interpolating), I then use the q and qq operators. This way I never have to escape a character in a string.

Replies are listed 'Best First'.
Re^2: slashes in single-quoted string
by LanX (Chancellor) on Apr 29, 2011 at 21:49 UTC
    > This way I never have to escape a character in a string.

    DB<100> print q{\n} \n DB<101> print q{\\n} \n DB<102> print q{\\\n} \\n

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://902080]
help
Chatterbox?
[james28909]: Good morning!
[james28909]: I have a problem I am trying to solve. I am packaging scripts using pdk and would like the verify the executable name each time it is executed
[Corion]: Hi James!
[james28909]: I looked through the docs, and see that PerlApp::exe() is suppose to return this information but whenever i try to use this, i get the error "Undefined subroutine &PerlApp::exe called"

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-07-28 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (429 votes). Check out past polls.