>>>>> "SB" == Steve Bertrand <st...@ipv6canada.com> writes:

  SB> 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
  >> );

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

you may have been confused with things like /x extended mode in regexes
which do allow comments. or regular lists of strings which also can have
comments. none of the quoted things (except for qr// with /x) can have
comments as perl is looking only for text or tokens (in the case of qw)
and the closing delimiter. otherwise how could perl tell when the text
that looks like a comment is one or is part of the text?

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
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