Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Trying to find missing closing quotes in CSV

by arrestee (Novice)
on Sep 16, 2013 at 23:46 UTC ( [id://1054352]=note: print w/replies, xml ) Need Help??


in reply to Re: Trying to find missing closing quotes in CSV
in thread Trying to find missing closing quotes in CSV

You're mistaken, and more than once. First, finding lines ending with other-than-double-quote is exactly what was wanted. Next, the regex doesn't have anything to do with the record separator. The dollar sign represents end-of-string, and the slash closes the regex. Finally, you say the code prints any line not ending with double quote, but it actually prints every line it's being fed, regardless of double quotes, because the input lines aren't chomp'ed and [^"] matches the newlines.

Hope that's clear.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1054352]
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-16 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found