Subject: | String comparison with != rather than ne |
Date: | Fri, 24 Sep 2010 17:00:11 +0200 |
To: | bug-Net-XMPP [...] rt.cpan.org |
From: | linus.widstromer [...] it.su.se (Linus Widströmer) |
lib/Net/XMPP/Protocol.pm line 3236 improperly uses != for string
comparison, which results in:
Show quoted text
> Argument "HASH" isn't numeric in numeric ne (!=) at
> /usr/share/perl5/Net/XMPP/Protocol.pm line 3235, <DATA> line 466.
Attaching a patch.
--- Protocol.pm 2007-03-29 14:24:35.000000000 +0200
+++ Protocol_fix.pm 2010-09-24 16:56:53.234080033 +0200
@@ -3233,7 +3233,7 @@
$self->{DEBUG}->Log1("callbackIQ: type($type) ns($ns)");
if (exists($self->{CB}->{IQns}->{$ns})
- && (ref($self->{CB}->{IQns}->{$ns}) != 'HASH' )
+ && (ref($self->{CB}->{IQns}->{$ns}) ne 'HASH' )
)
{
$self->{DEBUG}->Log1("callbackIQ: goto user function( $self->{CB}->{IQns}->{$ns} )");
Linus Widströmer
Stockholm University