Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by toolic (Bishop)
on May 02, 2018 at 14:59 UTC ( #1213949=note: print w/replies, xml ) Need Help??


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 (Pope) 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 (Cardinal) on May 02, 2018 at 15:27 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1213949]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-10-24 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (246 votes). Check out past polls.

    Notices?