Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
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 scrutinizing the Monastery: (12)
As of 2014-09-19 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (146 votes), past polls