Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: quotes in Perl

by ikegami (Pope)
on Oct 21, 2004 at 05:28 UTC ( #401062=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: quotes in Perl
Select or Download Code
Re^2: quotes in Perl
by ihb (Deacon) on Oct 21, 2004 at 11: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
Node Status?
node history
Node Type: note [id://401062]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-08-22 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls