Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Answer: How do I escape '#' pound sign?

by Anonymous Monk
on Sep 08, 2000 at 13:01 UTC ( #31561=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do I escape '#' pound sign? - Answer contributed by Anonymous Monk

Simply by putting the pound inside quotes:
$val = q(#); $val2= "#";

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-12-08 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (142 votes). Check out past polls.