ITmajor has asked for the wisdom of the Perl Monks concerning the following question:
foreach $line (@data) { chomp $line; ($timestamp, $dump1, $dump2, $out, $dump3, $dump4, $dump5, $in, $dump6 +)=split(/\t/, $line); # Sort out needed columns foreach ($line) { # Format time/date my $datetime = DateTime::Format::Excel->parse_datetime($timestamp); $timestamp = $datetime->ymd . $datetime->hms; seek ($fh, 0, 0) or die "Seek: $!"; print $fh "$timestamp $out $in\t"; } print $fh; } close (FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what does IO::File=GLOB mean?
by pc88mxer (Vicar) on Jul 25, 2008 at 19:57 UTC | |
|
Re: what does IO::File=GLOB mean?
by pjotrik (Friar) on Jul 25, 2008 at 20:14 UTC | |
by ITmajor (Beadle) on Jul 25, 2008 at 21:54 UTC | |
by pjotrik (Friar) on Jul 25, 2008 at 22:30 UTC | |
by chromatic (Archbishop) on Jul 26, 2008 at 05:32 UTC | |
by pjotrik (Friar) on Jul 26, 2008 at 06:40 UTC | |
by mr_mischief (Monsignor) on Jul 25, 2008 at 22:01 UTC |