Bug 21640: Enable output to STDOUT for Itiva outbound script
[koha.git] / misc / cronjobs / thirdparty / TalkingTech_itiva_outbound.pl
index 7ab5de2..d1ff392 100755 (executable)
@@ -96,7 +96,7 @@ if ( defined $outfile ) {
 } else {
     print "No output file defined; printing to STDOUT\n"
       if ( defined $verbose );
-    open( $OUT, '>', "&STDOUT" ) || die("Couldn't duplicate STDOUT: $!");
+    $OUT = *STDOUT || die "Couldn't duplicate STDOUT: $!";
 }
 
 my $format = 'V';    # format for phone notifications