On Thu, 22 Feb 2001, Cormac McClean wrote:
> Hi,
>> What do you feel are the relative merits of Perl v.s PHP
> for inclusion in a course in Web application development
> (including database connectivity)?
> Which is more widely used currently, and is this likely
> to change in the future?
I guess it depends on the job needed. I use PHP when a lot of databasing is
needed, and Perl for when there's a lot of file-work.
I've always found it awkward connecting to databases in Perl, but love it's
powerful regexps - yes, PHP has them as well, but they're not as easy to use
(IME).
I have yet to write a PHP program which accesses files - mostly because of it's
awkward regexps.
A plus for Perl is that it is included in most Linux distributions, where PHP
usually has to be specifically installed. Therefore, if you're giving someone a
script for their own use, it's more logical to give a Perl script.
PHP is much better for Internet work, in my opinion. The ease in which CGI
parameters, environmental variables, and cookies can be read and manipulated is
a big plus for me.
--
Kae Verens www.orbism.com
www.contactjuggling.org/personal/kverens
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!