http://qs321.pair.com?node_id=1213949


in reply to Perl Tutorial code uses "qw" but has an error when run

As others have explained, this syntax is no longer supported. This should be reported via perlbug so that the perlretut docs can be fixed. I will try to do this soon, unless someone beats me to it.

UPDATED (2018 may 3): I submitted this as a perlbug.

  • Comment on Re: Perl Tutorial code uses "qw" but has an error when run

Replies are listed 'Best First'.
Re^2: Perl Tutorial code uses "qw" but has an error when run
by ikegami (Patriarch) on May 02, 2018 at 17:45 UTC

    It was never supported. A bug in the parser merely allowed it despite being invalid syntax.

        Could you back up that claim? I just looked at 5.12's perlsyn, and it definitely shows parens required around the list of a foreach loop. I also checked perlop, and didn't see anything different there.

Re^2: Perl Tutorial code uses "qw" but has an error when run
by LanX (Sage) on May 02, 2018 at 15:27 UTC