Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-08-22 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (341 votes). Check out past polls.

    Notices?