mkdir $dir, 0775 unless -e $dir;
rename $fn, "$fn.o" if -e $fn;
- $fh = new IO::File ">$fn";
+ my $fh = new IO::File ">$fn";
if ($fh) {
my $dd = new Data::Dumper([ $self ]);
$dd->Indent(1);
my $line = shift;
my @line = split '\^', $line;
my $t = shift @line;
- my ($sec,$min,$hour) = gmtime((defined $t) ? $t : time);
- my $buf = sprintf "%02d:%02d:%02d", $hour, $min, $sec;
+ my ($sec,$min,$hour) = gmtime((defined $t) ? $t : time);
+ my $buf = sprintf "%02d:%02d:%02d", $hour, $min, $sec;
print $buf, ' ', join('^', @line);
}