Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Just another Perl shrine
 
PerlMonks  

Re: The most annoying common way to get a string literal in Perl is...

by beppu (Hermit)
on Jul 05, 2004 at 09:28 UTC ( [id://371872]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to The most annoying common way to get a string literal in Perl is...

I don't get the difference between "here doc" and 'there doc' except that one uses double quotes for the terminator and the other uses single quotes. (Is that the only difference or is there something more subtle to be aware of?)
  • Comment on Re: The most annoying common way to get a string literal in Perl is...

Replies are listed 'Best First'.
Re^2: The most annoying common way to get a string literal in Perl is...
by hardburn (Abbot) on Jul 06, 2004 at 17:17 UTC

    Both examples are really "here" docs. The poll author was just being silly.

    ----
    send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

Re^2: The most annoying common way to get a string literal in Perl is... (the "t")
by tye (Sage) on Jul 06, 2004 at 21:32 UTC

    Same as the difference between 'single' and "double": one interprets and one doesn't. Though <<'there docs' are unique in Perl for never treating \ as anything other than just \.

    If you thought "there doc" was some official term, then perhaps you didn't notice that most of the names used aren't names you'll find often used (never in the standard docs, for example).

    - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://371872]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.