Front page | perl.javascript |
Postings from March 2007
bind_function (1.03)
From:
Martyn Smith
Date:
March 27, 2007 18:26
Subject:
bind_function (1.03)
Message ID:
1175045188.3878.10.camel@flange.wgtn.cat-it.co.nz
I have a weird problem, I'm binding a function like so ...
$cx->bind_function(connect => sub {
my ($param1, $param2) = @_;
# ...
});
If I call the function like this ...
connect(function () {}, 'string');
it's fine, everything works as I expect.
If I call it like this however ...
connect('string', function () {});
$param1 comes through as undef, and the function comes through fine.
Anyone have any ideas ?
--
Martyn
-
bind_function (1.03)
by Martyn Smith