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

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);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.