Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: quotes in Perl

by ikegami (Patriarch)
on Oct 21, 2004 at 05:28 UTC ( [id://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.

    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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found