Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Double Quotes

by one4k4 (Hermit)
on Jun 04, 2001 at 16:49 UTC ( #85457=note: print w/replies, xml ) Need Help??

in reply to how to put double quotes inside strings? (was: Double Quoutes)

print "<a href=\"\">Perlmonks</a>";
Should work just fine. You have to add a \ to anything you want to print that would normally be in a perl statement. (For the life of me the word for the concept of \(something) wont come to me. Its on the tip of my tongue... It's Monday, I suppose.)

_14k4 - (

Replies are listed 'Best First'.
Re: Re: Double Quotes
by davorg (Chancellor) on Jun 04, 2001 at 16:58 UTC

    Or, of course, you can use alternative quoting operators to remove the need to use ugly escaping characters.

    print qq(a href="">Perlmonks</a>);

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

Re: Re: Double Quotes
by AidanLee (Chaplain) on Jun 04, 2001 at 17:28 UTC
    fyi, It's called "escaping"

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2016-10-24 15:35 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.