Solved

Escaping the pound sign?

Posted on 2000-02-13
2
939 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now