Home  |  Linux  | Mysql  | PHP  | XML
From:Martyn Smith Date:Tue Mar 27 19:26:28 2007
Subject:bind_function (1.03)
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


Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Navigate in group perl.javascript at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants