Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 - (

Comment on Re: Double Quotes
Select or Download Code
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 studying the Monastery: (4)
As of 2015-10-04 20:05 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (104 votes), past polls