Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 960
  • Last Modified:

Escaping the pound sign?

How do I escape the pound sign (#) in Perl?

If I try to enter HEX color values I always get an error, # is used for comment lines.

Example:

print "<FONT COLOR='#FFFFFF'>"

That won't work for 100 different reasons.

Thanks...
0
Raydot
Asked:
Raydot
1 Solution
 
jhurstCommented:
The escape character is \

So, COLOR="\#FFFF
0
 
RaydotAuthor Commented:
I think my problem was that I was using double and not single quotes around the hex color, actually.  So you didn't really answer my question, AND your example syntax was incorrect, but I'll give you the points, since I asked such a dumb question.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now