On Feb 18, 2005, at 8:01 PM, Chris Devers wrote:
That's just wacky that I had to force a newline on the qq form to get a match; I don't see this as validating the heredoc approach at all.
qq{} includes everything between the braces. Heredocs include everything between the lines. Seems like there's a place for each depending on the circumstances.
Note also that <<'EOF' is *almost* but not quite exactly identical to q{}. The former has no escape sequences, the latter has \\ and \{ and \}. That's the main reason I ever use heredocs, actually. Or if I'm in a script and not a module, I use __DATA__ sections.
-Ken