I put some information in a temp file but when I try to print what’s in the file, I get this instead--> IO::File=GLOB(0x8791…). What does this mean? Is the data not being written into the temp file? Here is a portion of my code.
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);
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);