- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

Possible attempt to put comments in qw() list

(W qw) qw() lists contain items separated by whitespace; as with literal strings, comment characters are not ignored, but are instead treated as literal data. (You may have used different delimiters than the parentheses shown here; braces are also frequently used.)

You probably wrote something like this:

@list = qw(
    a # a comment
    b # another comment
);

when you should have written this:

@list = qw(
    a
    b
);

If you really want comments, build your list the old-fashioned way, with quotes and commas:

@list = (
    'a',    # a comment
    'b',    # another comment
);
ISBN 9781906966027Perl Language Reference ManualSee the print edition