in reply to Re: Re: quoting style for lists
in thread quoting style for lists

$, = " "; print I => do => not => think => so => "\n"; __END__ I do not think so
As for qw, it is a quoting construct, like q, qq, etc. It's "argument" (which doesn't include the delimiters - the delimiters are eaten by the parser) is treated as a string and split on whitespace. What results is a list of strings.

Note that as soon as the parser consumed it, the delimiters are gone, and they never return. Delimiters are there just there to tell the parser, "start here" and "stop here". It doesn't make sense for qw to return "quoted words", just like it doesn't make sense to let qw return yellow.

Abigail

Replies are listed 'Best First'.
Re: Re: quoting style for lists
by runrig (Abbot) on Aug 01, 2002 at 19:53 UTC
    It doesn't make sense for qw to return "quoted words", just like it doesn't make sense to let qw return yellow.

    If we define "quoted words" as "strings with no whitespace" then it makes perfect sense (and if we define "yellow" as ... well, nevermind...). Anyway, I'd more accurately call it 'quoted words' since qw has more or less the effect of single-quoting those words, and I've occasionally wished for perhaps a 'qqw' which did some interpolation of the arguments.