Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Escaping characters in one-liners

by eXile (Priest)
on Mar 12, 2005 at 02:48 UTC ( #438866=note: print w/replies, xml ) Need Help??


in reply to Escaping characters in one-liners

For bourne-shell-likes you use single quote ('), as mentioned in previous post. If you want to print single quotes from within your one-liner, you can use
print chr(047)
Makes it harder to keep your code on 1 line though ...