Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^3: Epoch time conversion in CSV

by blue_cowdawg (Monsignor)
on Sep 25, 2012 at 15:47 UTC ( #995580=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Epoch time conversion in CSV
in thread Epoch time conversion in CSV

      How would I loop through the whole document alerts.csv?

The same way you'd loop over any other data set.

while(my $line=<DATA>){ # stuff goes here. }
If you wanted to convert the fields and write them back to the log file in question I'd suggest you give a look at Tie::File.

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Comment on Re^3: Epoch time conversion in CSV
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-11-27 15:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls