Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://119322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found