|
|
| Just another Perl shrine | |
| PerlMonks |
Re^3: HTML::Entities - encode all non-alphanumeric and foreign chars?by Sidhekin (Priest) |
| on Sep 23, 2007 at 20:15 UTC ( #640608=note: print w/ replies, xml ) | Need Help?? |
|
Single backslash works for me. Sure you weren't trying with a double-quoted string? ('\w', '\\w', "\\w" should all be the same string, \w — whereas "\w" is just w.) Oh, and the same goes for \s. It should Just Work in a single-quoted string, but in a double-quoted string, you'll need to double the backslash.
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||