Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Formatting dates while parsing CSV

by choroba (Cardinal)
on Jun 14, 2016 at 15:25 UTC ( [id://1165595]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Formatting dates while parsing CSV
in thread Add leading zeros to days/months in dates while parsing CSV

Arrays are indexed from 0 in Perl:
0 1 2 3 4 5 6 7 +8 9 10 11 12 13 640399762,1,1,colorant ran out during shot,20,IFC 8112NP,08DX8020212,, +1,1/31/2016,181315,A82T00154,7674,1/30/2016
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^6: Formatting dates while parsing CSV
by BigRedEO (Acolyte) on Jun 14, 2016 at 15:26 UTC
    Yes - but my code is adding a concatenated field to the beginning of each record first.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-23 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found