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
signature.asc
Description: This is a digitally signed message part
