-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Kai Schröder wrote: | On Monday 01 March 2004 23:10, Andi Gutmans wrote: | |>Hey, |>As some of you might have noticed, Dmitry worked on a Perl extension which |>allows PHP to run Perl scripts as well as instantiate Perl objects in PHP |>and use them. | | Intresting idea, but I have some questions: | - Should ext/perl "only" bring CPAN modules into PHP or is the goal to run any | Perl code in PHP?
Well, Perl itself does not differentiate from "CPAN modules" or "any other modules". Once you can load Perl modules and use the functions (or methods, for that matter), you can use any Perl code, and you are not restricted to CPAN.
| - Why ext/perl and not ext/parrot? Sterling started some experiments with | Parrot last year, why not go this way? Yes, I know that Parrot is far away | from a final release, but do we really need Perl support in PHP now?
Parrot is a year or so from the final release. However, even so, Sterling started implementing PHP in Parrot and not the other way round. I thought PHP6 would have Parrot as its platform? :)
| Other problems I see: | - Perl scalars could be references to anything (for instance on variables | inside a sub/function) | - Perl have tie (bind a variable on a package and do magic things like | automtic sort lists, share variables between processes, ...)
I was half hoping that PHP5's __get() and __set() methods could provide a similar capability when I first read about them, but I have been dissapointed :/
| - Perl have an good working own Garbage Collection, do you really want to | manage memory manually? | - In Perl $var, @var and %var are different things (same name, but different | prefix and variable type)
There are more: filehandles, dirhandles, & for subs and * for globs.
- -- Petras Kudaras aka moxliukas http://moxliukas.esu.as
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFARMg7ILp4U3/5SuARAqJAAKCmtWJiZ35Hat3CffIj4i6Gbno6bQCfR9f1 /jp96JD/Ocojxi2/CzcMDBk= =eddL -----END PGP SIGNATURE-----
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php