Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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: (4)
As of 2017-11-20 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (284 votes). Check out past polls.

    Notices?