in reply to # in qw

Use single quotes or q// to avoid interpolation of the list elements and the warning will go away.

for (q/#FF0000 #00FF00 #0000FF/)

Update: D'oh!! See replies below.

for (q/#FF0000/, q/#00FF00/, q/#0000FF/) would also work, but it's more typing.

Replies are listed 'Best First'.
Re: Re: # in qw
by busunsl (Vicar) on Sep 11, 2001 at 13:28 UTC
    But q// will not return a list! qw// does.
      That's true, I just realized it.

      for (split /\s+/, q/#FF000 #00FF00 #0000FF/) or for ('#FF000', '#00FF00', '#0000FF')