Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl: the Markov chain saw
 
PerlMonks  

Re: quotes in Perl

by ikegami (Patriarch)
on Oct 21, 2004 at 01:28 UTC ( [id://401062]=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 quotes in Perl

Unmentioned are:

  • Special sequences such as \n.
  • Which characters need to be escaped in which kind of quotes.
  • What happens if you escape a character that doesn't need escaping.
  • Interpolation of arrays.
  • Non-interpolation of hashes, globs and code.
  • Special variables affecting interpolation, such as $, (and maybe only $,).
  • How to interpolate expressions using "@{[ expr ]}"
  • <<marker vs <<"marker" vs <<'marker'.

I'm not saying that any of these things should be mentioned, just that you should consider whether they should be mentioned or not.

Replies are listed 'Best First'.
Re^2: quotes in Perl
by ihb (Deacon) on Oct 21, 2004 at 07:32 UTC

    Half of the issues you raise here is more about interpolation than about quoting. The document is about quoting, and so IMHO it should keep itself to quote matters. Some aren't directly about quoting, and some aren't directly about interpolation.

    Perhaps one can do a sister document that is about quote interpretation that would include both interpolation issues and and escaping issues, and link between it and this document.

    ihb

    See perltoc if you don't know which perldoc to read!
    Read argumentation in its context!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://401062]
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.