Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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
Replies are listed 'Best First'.
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.


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2015-11-27 19:08 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls