Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I convert ( ' ) into something Prolog's name/2 can handle, e.g. ( \' )?

by MrNobo1024 (Hermit)
on Oct 17, 2001 at 07:56 UTC ( #119322=note: print w/ replies, xml ) Need Help??


in reply to How do I convert ( ' ) into something Prolog's name/2 can handle, e.g. ( \' )?

Just use a substitution regex:
$str =~ s|'|\\'|g;
  • Comment on Re: How do I convert ( ' ) into something Prolog's name/2 can handle, e.g. ( \' )?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://119322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2016-07-27 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (242 votes). Check out past polls.