From: Rafael Garcia-Suarez Date: Thu, 24 May 2007 15:37:40 +0000 (+0000) Subject: Adjustment to the test for importing feature bundles, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=89c3975acc8149f49838932bd37bf67df50b258b;p=p5sagit%2Fp5-mst-13.2.git Adjustment to the test for importing feature bundles, found by Hugo p4raw-id: //depot/perl@31267 --- diff --git a/lib/feature.pm b/lib/feature.pm index f33ce2d..7ffae72 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -151,7 +151,8 @@ sub import { } while (@_) { my $name = shift(@_); - if (substr($name, 0, 1) eq ":" and (my $v = substr($name, 1))) { + if (substr($name, 0, 1) eq ":") { + my $v = substr($name, 1); if (!exists $feature_bundle{$v}) { unknown_feature_bundle($v); } @@ -176,7 +177,8 @@ sub unimport { while (@_) { my $name = shift; - if (substr($name, 0, 1) eq ":" and (my $v = substr($name, 1))) { + if (substr($name, 0, 1) eq ":") { + my $v = substr($name, 1); if (!exists $feature_bundle{$v}) { unknown_feature_bundle($v); }