Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Perl one-liner Quotes help

by mikeraz (Friar)
on Jul 15, 2010 at 18:20 UTC ( [id://849822]=note: print w/replies, xml ) Need Help??


in reply to Perl one-liner Quotes help

consider

    system("fortune"); 

wait, not those kinds of quotes

Does

    perl -e 'print "hello \"quoted name\"\n";'
do something like you want?

Generally though if you use " and then want to print a " you need to escape it by preceding it with a \ see example above. Generalize to any type of quote character.


Be Appropriate && Follow Your Curiosity

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found