Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Double Qoutes in string command

by choroba (Abbot)
on Aug 02, 2013 at 14:08 UTC ( #1047605=note: print w/ replies, xml ) Need Help??


in reply to Double Qoutes in string command

Read perlop, especially the Quote and Quote like Operators section. You do not need double quotes here, as there is nothing to interpolate, so you can switch to single quotes:

my $string = 'sysBootFileWrite "QSDvxWorks.aif"';

For cases where interpolation is needed, you can backslash the inner double quotes or use the qq operator:

print "He said, \"Hello, $darling.\""; print qq(He said, "Hello, $darling.");
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Double Qoutes in string command
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-07-25 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls