Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bind_function (1.03)

0 views
Skip to first unread message

Martyn Smith

unread,
Mar 27, 2007, 9:26:28 PM3/27/07
to perl-ja...@perl.org
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
0 new messages