Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Escaping Apostrophe (updated)

by AnomalousMonk (Archbishop)
on Oct 20, 2017 at 16:08 UTC ( [id://1201765]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($row_sub_i_esc_sq = $row[$idx]) =~ s{ ' }{\\}xmsg;
    $updstmt .= $hdr[$idx]." =  '". $row_sub_i_esc_sq ."' \r\n";
    
  2. or download this
    (my $row_sub_i_esc_sq = $row[$idx]) =~ s{ (?= ') }{\\}xmsg;
    $updstmt .= $hdr[$idx]." =  '". $row_sub_i_esc_sq ."' \r\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found