Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 calm...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-01-22 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (190 votes). Check out past polls.