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

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

Replies are listed 'Best First'.
Re^3: Epoch time conversion in CSV
by blue_cowdawg (Monsignor) on Sep 25, 2012 at 15:47 UTC
        How would I loop through the whole document alerts.csv?

    Dude!,
    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