Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 studying the Monastery: (5)
As of 2016-09-27 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (493 votes). Check out past polls.