From 233c37ee45efa352375008181bcb05ea7676169c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Fri, 27 Aug 2010 08:20:24 +0000 Subject: [PATCH] Small change to slice(). --- modules/Bio/EnsEMBL/Feature.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Feature.pm b/modules/Bio/EnsEMBL/Feature.pm index 5b4c232dbc..230c9ee2ed 100644 --- a/modules/Bio/EnsEMBL/Feature.pm +++ b/modules/Bio/EnsEMBL/Feature.pm @@ -380,7 +380,7 @@ sub slice { $self->{'slice'} = $slice; } elsif ( @_ > 1 ) { - undef $self->{'slice'}; + delete($self->{'slice'}); } return $self->{'slice'}; -- GitLab