Skip to content

Commit

Permalink
silence subroutine warning from redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Fields committed Mar 13, 2012
1 parent d3af015 commit 6176be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/Ontology/IO/go.t
Expand Up @@ -239,11 +239,11 @@ is(scalar(@anc),4);
# helper functions
#################################################################

sub goid { num ( $a->GO_id() ) <=> num ( $b->GO_id() ) }
sub goid { snum ( $a->GO_id() ) <=> snum ( $b->GO_id() ) }

sub child_goid { num ( $a->child_term()->GO_id() ) <=> num ( $b->child_term()->GO_id() ) }
sub child_goid { snum ( $a->child_term()->GO_id() ) <=> snum ( $b->child_term()->GO_id() ) }

sub num {
sub snum {
my $x = shift( @_ );
$x =~ s/\D+//g;
return $x;
Expand Down

0 comments on commit 6176be4

Please sign in to comment.