perldoc -f qw explains that if qw is followed by whitespace plus '#', the rest of the line is a comment, and the qw's opening delimiter will be taken from the following line:
There can be whitespace between the operator and the quoting characters,
except when "#" is being used as the quoting character. "q#foo#" is parsed
as the string "foo", while "q #foo#" is the operator "q" followed by a
comment. Its argument will be taken from the next line. This allows you to
write:
s {foo} # Replace foo
{bar} # with bar.
perldoc -f qw explains that if qw is followed by whitespace plus '#', the rest of the line is a comment, and the qw's opening delimiter will be taken from the following line:
With test file:
perl acts as documented:
whereas PPI does not: