Index: /trunk/ippScripts/scripts/detrend_reject_exp.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 10529)
+++ /trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 10530)
@@ -98,8 +98,9 @@
 my $numReject = 0;		# Number of exposures rejected
 my $command;
+my $reject;
 for (my $i = 0; $i < scalar @means; $i++) {
     my $expTag = $expTags[$i];	# Exposure ID
     $command = "$dettool -updateresidexp -det_id $det_id -iteration $iter -exp_tag $expTag"; # Command to run
-    my $reject = 0;		# Reject this exposure?
+    $reject = 0;		# Reject this exposure?
 
     if (not $accept[$i]) {
@@ -145,5 +146,5 @@
 	print "no rejection for exposure mean stdev\n";
     }
-    
+
   UPDATE:
     if ($reject) {
