We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,078 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

2
Contributors
1
Reply
50 Minutes
Discussion Span
1 Year Ago
Last Updated
2
Views
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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1697 seconds using 2.68MB