Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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.

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 chilling in the Monastery: (8)
As of 2016-10-22 14:30 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.