Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Explain comments in qw// quoted data

by mulander (Monk)
on Oct 29, 2005 at 13:29 UTC ( #503862=note: print w/replies, xml ) Need Help??


in reply to Explain comments in qw// quoted data

From perldoc perlop:
qw/STRING/ Evaluates to a list of the words extracted out of STRING, using embedd +ed whitespace as the word delimiters. --removed by me you can see the rest in perldoc perlop-- A common mistake is to try to separate the words with comma or to put +comments into a multi-line qw-string. For this reason, the use warnin +gs pragma and the -w switch (that is, the $^W variable) produces warn +ings if the STRING contains the ``,'' or the ``#'' character.
As you can see placing placing comments in qw() is a common mistake ;) when in doubt always read the docs, and always use warnings; use strict;.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2019-11-15 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (83 votes). Check out past polls.

    Notices?