Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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=\"http://www.perlmonks.org\">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 - webmaster@poorheart.com (www.poorheart.com)


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="http://www.perlmonks.org">Perlmonks</a>);
    --
    <http://www.dave.org.uk>

    "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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2015-07-30 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls