bind_function (1.03)
[email protected] (Martyn Smith) Wed, 28 Mar 2007 13:26:28 +1200
| Newsgroups | perl.javascript |
|---|---|
| Message-ID | <[email protected]> |
--=-TtDSQMCCy3n3UA45oycf
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
I have a weird problem, I'm binding a function like so ...
$cx->bind_function(connect =3D> sub {
my ($param1, $param2) =3D @_;
# ...
});
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
--=-TtDSQMCCy3n3UA45oycf
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBGCcREaQzZLHPeR/ERAnahAJoCd/xqv/fuxtnvasOolqo58vgjwACeN/tv
/7UuNq98zBcVVjQyFJ5C9LQ=
=HDpY
-----END PGP SIGNATURE-----
--=-TtDSQMCCy3n3UA45oycf--