Index: trunk/ippScripts/scripts/detrend_resid_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_resid_imfile.pl	(revision 19662)
+++ trunk/ippScripts/scripts/detrend_resid_imfile.pl	(revision 19723)
@@ -183,5 +183,8 @@
         &my_die("Unable to perform ppStatsFromMetadata: $error_code", $det_id, $iter, $exp_id, $class_id, $error_code);
     }
-    $cmdflags = "@$stdout_buf"; chomp $cmdflags;
+    foreach my $line (@$stdout_buf) {
+	$cmdflags .= " $line";
+    }
+    chomp $cmdflags;
 
     # run ppStats on the binned image
@@ -193,5 +196,8 @@
         &my_die("Unable to perform ppStats: $error_code", $det_id, $iter, $exp_id, $class_id, $error_code);
     }
-    $cmdflags .= " @$stdout_buf"; chomp $cmdflags;
+    foreach my $line (@$stdout_buf) {
+	$cmdflags .= " $line";
+    }
+    chomp $cmdflags;
 }
 
