Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

( #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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2016-08-29 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (397 votes). Check out past polls.