Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Baffled by data cleaning regex issueby hesco (Deacon) |
on Nov 18, 2008 at 23:45 UTC ( [id://724424]=perlquestion: print w/replies, xml ) | Need Help?? |
hesco has asked for the wisdom of the Perl Monks concerning the following question:
Hello all: So as not to further distract the cb from its discussion of Zappa's life's work, I bring this question here. I am working on a script to clean and import a large csv data file into a postgres backend. My duplicate checks are failing to prevent fatal errors related to unique data constraints applied to some tables. As I drill into this issue, what I'm finding is that my regex's are not working as I thought they would.
This is yielding debug output which looks like this:
Field #32 is only a representative sample. This issue is showing up on several fields actually. Can anyone please explain why this is happening for me, please? And more important what I can do about it? Thanks, -- Hugh
if( $lal && $lol ) { $life++; }
Back to
Seekers of Perl Wisdom
|
|