# vim: set ft=perl:
# -------------------------------------------------------------------
-# $Id: sqlt,v 1.4 2003-10-03 17:08:46 kycl4rk Exp $
+# $Id: sqlt,v 1.5 2003-10-04 01:22:46 kycl4rk Exp $
# -------------------------------------------------------------------
# Copyright (C) 2002 Ken Y. Clark <kclar@cpan.org>,
# darren chamberlain <darren@cpan.org>
use SQL::Translator;
use vars qw( $VERSION );
-$VERSION = sprintf "%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/;
my $from; # the original database
my $to; # the destination database
exit(0);
}
-pod2usage(2) unless $from && $to && @files;
+pod2usage( msg => 'Please supply "from" and "to" arguments' ) unless $from && $to;
$translator->parser($from);
$translator->producer($to);