in reply to (elbie): Last two rows or a csv file.
in thread Last two rows or a csv file.
It prints the rows from last to first. Now I need to get the first two rows timestamp and do the calulations. Then we'll be good to go!#!/usr/bin/perl open (FILE, "edidocs.csv") or die "Can't open file $!\n"; @lines = <FILE>; while ($line = pop @lines) { print $line "\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
(elbie 2): Last two rows or a csv file.
by elbie (Curate) on Aug 18, 2001 at 02:09 UTC | |
by qball (Beadle) on Aug 18, 2001 at 02:28 UTC |