From 316e66b5a02be4528bacbae70ff111925d9077b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Wed, 28 Oct 2009 16:54:07 +0000 Subject: [PATCH] Use CORE::length() rather than just length() to disambiguate. --- modules/Bio/EnsEMBL/Slice.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/Bio/EnsEMBL/Slice.pm b/modules/Bio/EnsEMBL/Slice.pm index fb4ce106fe..0c7425bd9c 100644 --- a/modules/Bio/EnsEMBL/Slice.pm +++ b/modules/Bio/EnsEMBL/Slice.pm @@ -153,11 +153,11 @@ sub new { throw('SEQ_REGION_LENGTH must be > 0'); } - if ( defined($seq) && length($seq) != ( $end - $start + 1 ) ) { - throw( 'SEQ must be the same length as the defined LENGTH not ' - . length($seq) - . ' compared to ' - . ( $end - $start + 1 ) ); + if ( defined($seq) && CORE::length($seq) != ( $end - $start + 1 ) ) { + throw('SEQ must be the same length as the defined LENGTH not ' + . CORE::length($seq) + . ' compared to ' + . ( $end - $start + 1 ) ); } if(defined($coord_system)) { -- GitLab