use Data::Structure::Util qw(unbless);
use Time::HiRes qw(gettimeofday tv_interval);
use IO::File;
+use File::Copy;
use Carp;
use DB_File;
say "You appear to have (or are using) $ofn, creating $nfn instead";
$ofn = $nfn;
} else {
- say "using $ofn for output";
+ $ofn = "$ofn.n";
+ say "using $ofn.n for output";
}
unless ($@) {
if ($ref) {
unbless $ref;
- $ofh->print($json->encode($ref) . "\n");
+ $ofh->print("$ref->{call}\t" . $json->encode($ref) . "\n");
$count++;
}
else {