--- db/prgsrc/updatedb.pl 2003/01/09 19:53:23 1.33 +++ db/prgsrc/updatedb.pl 2003/02/07 23:20:15 1.34 @@ -28,13 +28,14 @@ The database, user and password are hard Dmitry Rubinstein -=head1 $Id: updatedb.pl,v 1.33 2003/01/09 19:53:23 roma7 Exp $ +=head1 $Id: updatedb.pl,v 1.34 2003/02/07 23:20:15 roma7 Exp $ =cut use vars qw($opt_i); use Getopt::Std; +my $unsortedname="../dump/unsorted"; getopts('i'); #open STDERR, ">errors"; my $Interactive=$opt_i || 0; @@ -273,7 +274,7 @@ MAIN: my($dbh) = DBI->connect("DBI:mysql:chgk", "piataev", "") or die "Can't connect to DB chgk\n"; my @sources; - open UNSORTED, ">$DUMPDIR/unsorted"; + open UNSORTED, ">$unsortedname"; while ($source = shift) { push @sources,glob($source); } @@ -410,6 +411,6 @@ MAIN: print STDERR "Всего вопросов: $all_qnum \n"; } close UNSORTED; - unlink "unsorted" unless $isunsorted; + unlink $unsortedname unless $isunsorted; $dbh->disconnect; }