updated marc_stream_importer.pl to use the 0.23 API
Signed-off-by: Fredric T Parks <fparks@catalystitservices.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
use Data::Dumper;
use File::Basename qw/fileparse/;
-use File::Temp;
+use File::Temp qw/tempfile/;
use Getopt::Long qw(:DEFAULT GetOptionsFromArray);
use Pod::Usage;
use Socket;
my ($handle, $tempfile);
if (!$isfile) {
- ($handle, $tempfile) = File::Temp->tempfile("$0_XXXX", DIR => $tempdir) or die "Cannot write tempfile in $tempdir";
+ ($handle, $tempfile) = tempfile("$0_XXXX", DIR => $tempdir) or die "Cannot write tempfile in $tempdir";
print $handle $data;
close $handle;
} else {