Solved

Escaping the pound sign?

Posted on 2000-02-13
2
941 Views
Last Modified: 2009-12-16
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
Comment
Question by:Raydot
2 Comments
 
LVL 8

Accepted Solution

by:
jhurst earned 50 total points
ID: 2517265
The escape character is \

So, COLOR="\#FFFF
0
 
LVL 3

Author Comment

by:Raydot
ID: 2517282
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question