Subject: | Typo: UNIVERSAL::isa($c, 'shutdown') -> s/isa/can/ |
There is a typo in SOAP::Transport::HTTP. Line 500 says:
UNIVERSAL::isa($c, 'shutdown') ? $c->shutdown(2) : $c->close();
This doesn't make sense: $c is not a member of a class called
'shutdown'. I believe this code intended to use 'can', not 'isa'.
Furthermore, this use of the functional form of UNIVERSAL:: is
disrecommended as of Perl 5.9.x (see
http://search.cpan.org/~rgarcia/perl-5.9.3/lib/UNIVERSAL.pm). The
recommended usage is:
eval { $c->can('shutdown') } ? $c->shutdown(2) : $c->close();
Thanks,
Chris