Small headache with the '#' but it's not a comment
My Captacha module uses lines like this, to vary colors.
my @l_colors = qw(#338833 #33AAAA #AA33AA #AA3333 #3333AA);
My error log gets cluttered with:
FCaptcha.pm: Possible attempt to put comments in qw() list at FCaptcha.pm line 21.,
Quotes don't work, neither does #.
Any thoughts what I can do to make it cleaner. Oh, and while # and " doesn't make the error go away, it does render the line non-workable. So I just get black lines and circles instead of varying colors.
Many thanks.
Sergio
50 Minutes
Discussion Span
SergioQ
Junior Poster in Training
54 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Hello,
Try a backslash in front of the # sign.
qw(\#338833 \#33AAAA \#AA33AA \#AA3333 \#3333AA);
or if that does not work you could add the # sign when you actually use the data and store just:
qw(338833 33AAAA AA33AA AA3333 3333AA);
rch1231
Veteran Poster
1,040 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12