On 2010.05.07 19:37, Steve Bertrand wrote:

> (fwiw, and I don't have time to get into the rest of the code right now,
> I prefer whitespace, so I'd write that as):
> 
> my @ar1 = qw (
>               r2one
>               r2two
>               r2three # comment, reader needs info for this var
>               r2four
>               r2five  # more comments
>       );

I must apologize for the above, as it is absolutely incorrect. Comments
can not be inserted within a qw(). My lack of drinks and too much Perl
work had me thinking that I've done that before ;)

More can be learnt about Perl 'Quote-like-operators' here:

% perldoc perlop

...or for the clicky-pointy type:

http://perldoc.perl.org/perlop.html#Quote-Like-Operators

So, lesson of the day... don't post unless you've had enough to drink,
and haven't worked a lot (or the other way around ;)

Cheers,

Steve

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to