Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by toolic (Bishop)
on May 02, 2018 at 14:59 UTC ( [id://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 (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 (Saint) on May 02, 2018 at 15:27 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found