From 89c3975acc8149f49838932bd37bf67df50b258b Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 24 May 2007 15:37:40 +0000 Subject: [PATCH] Adjustment to the test for importing feature bundles, found by Hugo p4raw-id: //depot/perl@31267 --- lib/feature.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } -- 2.7.4