Remove deprecated (and now fatal) attempt to import a function from
UNIVERSAL.
To quote perl5220delta:
> use UNIVERSAL '...' is now a fatal error
>
> Importing functions from UNIVERSAL has been deprecated since
> v5.12, and is now a fatal error.
Also, adjust the style by which we call "can" on $self->{ils}
Thanks to Blake at MOBIUS for originally reporting this issue, and
proposing a fix.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
if ($status) { # login OK
- $self->{state} = $self->{ils}->state() if (UNIVERSAL::can($self->{ils},'state'));
+ $self->{state} = $self->{ils}->state() if ($self->{ils}->can('state'));
$cache_data->{success} = 1;
$cache_data->{net_server_parts} = {
use warnings;
use Exporter;
use Sys::Syslog qw(syslog);
-use UNIVERSAL qw(can);
use Sip qw(:all);
use Sip::Constants qw(:all);