Author: jkeenan
Date: Thu Oct  4 18:54:54 2007
New Revision: 21861

Modified:
   branches/reconfigure/lib/Parrot/Configure.pm

Log:
In 'elsif' clause,  should be tested for string equality rather than 
mathematical equality -- thereby avoiding 'non-numeric' warning.

Modified: branches/reconfigure/lib/Parrot/Configure.pm
==============================================================================
--- branches/reconfigure/lib/Parrot/Configure.pm        (original)
+++ branches/reconfigure/lib/Parrot/Configure.pm        Thu Oct  4 18:54:54 2007
@@ -268,7 +268,7 @@
             $/x
         ) {
             %steps_to_die_for = map {$_, 1} (split /,/, $fatal_step);
-        } elsif ( $fatal_step == 1 ) {
+        } elsif ( $fatal_step eq '1' ) {
             %steps_to_die_for = map {$_, 1} @{ $conf->{list_of_steps} };
         } else {
             die "Argument to 'fatal-step' option must be comma-delimited 
string of valid configuration steps";

Reply via email to