Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-05-18 22:33 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (71 votes). Check out past polls.