On Thu, Nov 25, 2004 at 05:03:36PM +0100, Juerd wrote: : Thomas Seiler skribis 2004-11-25 14:52 (+0100): : > Is $heredoc = ĢEND; the same as $heredoc = <<END; ? : : I certainly hope not. : : Quoting the delimiter is needed, by the way. : : How is <<'END' disambiguated from <<'qw' list>>, anyway?
To get the qw// parse you must put a space between the << and the quote. This is no hardship semantically, since qw// has always thrown away initial and trailing whitespace. Under one way of looking at it, it's just kind of a longest token rule, since << as a term only ever means qw, and the heredoc tokens are actually just long opening quotes: <<', <<", <<q/, etc. that have to match a trailing quote. Larry