gunzip has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone point to or provide a list of Perl modules which would provide most of what PHP has to offer? I'm aware of the Mason/Embperl/CGI::Application alternatives. It's more the modules for matching the PHP function groups that I'm after. I've seen one short Perl/PHP comparison list but it only contained a few language/syntax comparisons. It's a module list I'm after.

Update. To be more specific, I had this subset of PHP in mind:

20040908 Edit by ysth: change title from Perl module list to match PHP function groups

  • Comment on List of Perl modules corresponding to PHP function groups?

Replies are listed 'Best First'.
Re: List of Perl modules corresponding to PHP function groups?
by PodMaster (Abbot) on Aug 30, 2004 at 11:21 UTC
    Just what are php function groups? I'd think this would cover it :D A few gui toolkits are missing from the list (Prima, SDL_Perl), but thats only because I don't usually install those :) I am leaving out most things CORE ( http://search.cpan.org/dist/perl-5.8.5/   http://cpan.uwinnipeg.ca/dist/perl ).

    update: I switched all the links to use the kobes mirror. And i had to remove the version numbers to do that (sigh).

    Also not listed are the various database drivers, but those are listed under http://cpan.uwinnipeg.ca/dist/DBD/. Everything else found at http://www.php.net/manual/en/ (that's what you're talking about , i guess) can be found by searching cpan (but you knew that :).

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Everything else found at http://www.php.net/manual/en/ (that's what you're talking about , i guess) can be found by searching cpan (but you knew that :)

      There isn't a simple one-to-one PHP function set <-> Perl module translation. That's why I'm asking someone who knows CPAN and Perl webdev better than I do.

        Perhaps start maintaining such a list yourself, and ask for comments and specifically about the ones you can't find.
      Thanks, PodMaster. Much appreciated.
Re: List of Perl modules corresponding to PHP function groups?
by perlfan (Parson) on Aug 30, 2004 at 13:53 UTC
    Perl doesn't attempt to include everything and the kitchen sink into the 'language'. I like PHP, but Perl's built in functions are rather minimal compared to PHP's "include everything" approach - no offense of course. As stated above, CPAN is the best place to get any add-ons.
      I'm not comparing Perl to PHP. I just want to compile an equivalent set of Perl modules for PHP's main function groups (as listed). However, I don't know the details of CPAN well enough to decide whether a given module maps, feature-wise, with a PHP function group. 'Thought there might be some Perl Monks who have been around long enough to help instead of telling me to simply go to CPAN.

        There is no such list to my knowledge, but it sounds like a very useful advocacy tool to have. It's something I could imagine taking the time to build, but I'm wary of promising anything as my todo list is already much longer than my allotment of tuits.

        Makeshifts last the longest.

        I understand. Question: do you need *all* of these things blindly? I would suggest a piecemeal approach - install only what you need when you need it....although a matrix showing the "equivalencies" could be useful...
Re: List of Perl modules corresponding to PHP function groups?
by Arunbear (Prior) on Aug 31, 2004 at 07:41 UTC
    CPAN does have a (tiny) PHP namespace. There are also the CGI::WebIn and CGI::WebOut modules which take a PHP-ish approach to CGI.