From 9af5023a70ae9f0d38025c6dbb9d6f3e7027e529 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 11 May 2010 16:17:40 +0100 Subject: [PATCH] FEFO for irspy_search() if a hash is passed in place of a hash-reference. --- lib/ZOOM/IRSpy/Connection.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ZOOM/IRSpy/Connection.pm b/lib/ZOOM/IRSpy/Connection.pm index 6157f98..6664168 100644 --- a/lib/ZOOM/IRSpy/Connection.pm +++ b/lib/ZOOM/IRSpy/Connection.pm @@ -148,6 +148,7 @@ sub irspy_search { 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)); -- 1.7.10.4