FEFO for irspy_search() if a hash is passed in place of a hash-reference.
authorMike Taylor <mike@miketaylor.org.uk>
Tue, 11 May 2010 15:17:40 +0000 (16:17 +0100)
committerMike Taylor <mike@miketaylor.org.uk>
Tue, 11 May 2010 15:17:40 +0000 (16:17 +0100)
lib/ZOOM/IRSpy/Connection.pm

index 6157f98..6664168 100644 (file)
@@ -148,6 +148,7 @@ sub irspy_search {
     my $this = shift();
     my($qtype, $qstr, $udata, $options, %cb) = @_;
 
     my $this = shift();
     my($qtype, $qstr, $udata, $options, %cb) = @_;
 
+    { use Carp; confess "Odd-sized hash!" if @_ % 2; }
     #warn "calling $this->irspy_search(", join(", ", @_), ")\n";
     $this->add_task(new ZOOM::IRSpy::Task::Search
                    ($qtype, $qstr, $this, $udata, $options, %cb));
     #warn "calling $this->irspy_search(", join(", ", @_), ")\n";
     $this->add_task(new ZOOM::IRSpy::Task::Search
                    ($qtype, $qstr, $this, $udata, $options, %cb));