<?xml version="1.0" encoding="Windows-1252"?>
<node id="94698" title="Using # inside qw()" created="2001-07-07 07:22:36" updated="2005-07-21 01:27:35">
<type id="115">
perlquestion</type>
<author id="47040">
Chady</author>
<data>
<field name="doctext">
&lt;p&gt;just seems that I'm braindead today. Why does this piece of code break?&lt;/p&gt;

&lt;code&gt;

#!perl -w
use strict;

my @c = q' # % ( / 3 6 7 @ B C G Q R ^ s t ~ ';

print $c[2];

# breaks into :
#  Use of uninitialized value in print at test.pl line 6.

&lt;/code&gt;
&lt;p&gt;I even tried to join the array with this:&lt;/p&gt;
&lt;code&gt;

print join ('|', @c);

# results in: # % ( / 3 6 7 @ B C G Q R ^ s t ~

&lt;/code&gt;

&lt;p&gt;where am I going wrong? I guess there is something special about the characters?&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;qw()&lt;/code&gt; operator works as far as joining the array, but breaks with -w and gives this warning.&lt;/p&gt;
&lt;code&gt;
Possible attempt to put comments in qw() list at test.pl line 4.
&lt;/code&gt;

&lt;hr&gt;&lt;font size="1"&gt;He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.&lt;br&gt;&lt;br&gt;
&lt;A HREF="/index.pl?node=Chady"&gt;Chady&lt;/A&gt; | &lt;a href="http://chady.net" target="Chady"&gt;http://chady.net/&lt;/a&gt;&lt;/font&gt;
&lt;p&gt;&lt;small&gt;Edit by [tye] to change title&lt;/small&gt;&lt;/p&gt;</field>
</data>
</node>
