changeset 734:f166724c3e1c

Changed message when getting next file from file list.
author neelin <neelin>
date Thu, 02 Feb 1995 21:14:07 +0000
parents 61750edba670
children 542b3e7dfc4a
files conversion/mri_to_minc/mri_to_minc.pl
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/conversion/mri_to_minc/mri_to_minc.pl
+++ b/conversion/mri_to_minc/mri_to_minc.pl
@@ -158,7 +158,9 @@
     # Get next value from list if no tape drive
     if (length($tapedrive) == 0) {
         local($filename) = shift(@input_list);
-        print "Reading header for file $filename\n";
+        if (length($filename) > 0) {
+           print "Reading header for file $filename\n";
+        }
         return $filename;
     }
 
@@ -677,7 +679,7 @@
         # Get next file
         if ($keep_looping) {
             $nextfile = &read_next_file($tapedrive, *input_list);
-            if ($nextfile eq "") {
+            if (length($nextfile) <= 0) {
                 $keep_looping = 0;
             }
         }