Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Make string that results from split behave like double-quoted string

by glenn (Scribe)
on Aug 23, 2013 at 20:15 UTC ( [id://1050728]=note: print w/replies, xml ) Need Help??


in reply to Re: Make string that results from split behave like double-quoted string
in thread Make string that results from split behave like double-quoted string

chilledham makes a good point, i should have seen it.. the \ and n are being treated as individual characters

@arr = split /\|/; for (my $x = 0; $x < @arr; $x++) { $arr[$x] =~ s/\\n/\n/g; } $dbh->execute(@arr);
  • Comment on Re^2: Make string that results from split behave like double-quoted string
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1050728]
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: (3)
As of 2024-04-24 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found