]> git.donarmstrong.com Git - biopieces.git/commitdiff
debugging search function in NClists.pm
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sat, 6 Feb 2010 17:50:02 +0000 (17:50 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sat, 6 Feb 2010 17:50:02 +0000 (17:50 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@865 74ccb610-7750-0410-82ae-013aeee3265d

code_perl/Maasha/NClist.pm

index 8385202426e1867905dfbb3563d542cbd527ce06..b81b2db17eab850f58fde07931bf80770158cd49 100644 (file)
@@ -288,7 +288,7 @@ sub nc_list_search
 
     foreach $feature ( @{ $nc_list } )
     {
-        push @features, $feature if grep /$regex/i, @{ $feature };
+        push @features, $feature if grep { $_ =~ /$regex/i if defined $_ } @{ $feature };
 
         if ( defined $feature->[ $index ] ) # sublist exists so recurse to this.
         {