Subject: | duplicate declaration of class method 'get_keys' |
The module Cache::NullCache has the class method 'get_keys' declared twice, therefore a warning message is given during compilation:
Subroutine get_keys redefined at
/home_dir/gjunsay/myperl/lib/Cache/NullCache.pm line 101 (#1)
(W redefine) You redefined a subroutine. To suppress this warning, say
{
no warnings;
eval "sub name { ... }";
}
The methods in question are these:
sub get_keys
{
return ( );
}
sub get_keys
{
warn( "get_identifiers has been marked deprepricated. use get_keys" );
return ( );
}
I presume that the second method should be changed to 'get_identifiers' based on the warning message.