Escaping the pound sign?

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


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

That won't work for 100 different reasons.

Question by:Raydot

Accepted Solution

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


Author Comment

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.

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Strange perl issue 6 122
rename outfile before writing 2 66
PERL variable conundrum 9 83
Perl Awk Need Help 3 94
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

15 Experts available now in Live!

Get 1:1 Help Now