On Tuesday 01 April 2003 11:23, Adriano Allora wrote:
This has been an interesting thread. �Here's my take:
I like them both but I prefer Perl. �I use to say that Perl was best for
application level stuff and PHP was best for web content related stuff. �
However, that kind of thinking is somewhat deprecated now since PHP has done
some evolving.
I have a friend who is into PHP very much. �Indeed, he is one of those that
*hates* Perl and *loves* PHP. �Frankly, I don't think he put the time into
Perl to really appreciate it. �OTH, I find that some people just can't stand
the way Perl has magic variables, handles regular expressions, and has
implicit handling of certain things. �I LOVE that about Perl. �It makes
coding faster imo.
There is only one thing I like better about PHP than Perl. �PHP's OOP seems
to be more like OOP. �However, for me...I don't do OOP =P �So, on the
personal level that doesn't mean much to me.
PHP can be used, now, for application level stuff. �This is one of the ways
PHP has evolved. �But one of the things I do not like about PHP is it's use
of function calls for everything. �Now, I admit, this is ridiculous because
ever other language, other than Perl, uses functions for *everything*. �This
is where Perl has spoiled me. �What am I talking about?
A regular expression in PHP looks like:
preg_match("/<(\w+)(.*?)>(.+)<\/\\1>/s", $data, $regs);
Perl:
/<(\w+)(.*?)>(.+)<\/\\1>/; �# implicit functionality
This is the thing my friend hates and the thing I love. �He blames it on his
being use to C. �I can understand that. �I have never really seen huge
resource hits using PHP vs Perl. �I can't say which one uses more resources. �
I suppose it would be a neat test for someone to write a script that does the
same thing in PHP and Perl and to benchmark it. �Does PHP have a benchmarking
module yet?
Oh well....to each his own. �I neither hate or love PHP. �I feel it does have
a place out there in the cyberworld. �It has some good qualities about it. �I
just love Perl. �I *need* to learn more C. �I have to say that I really like
the windows PHP documentation (*.chm file). �When I was using Windows that
was a HUGE plus to PHP. �Is there a such thing for Perl? �I've never seen it.
PHP and Perl kick any microsoft language's butt when it comes to quality,
security, and ability.
- Jim
| Hi,
| I used to use ASP, then I start to use PHP and now I'm learning perl.
| Perl is more efficent and powerful but also (a bit?) more difficult
| than PHP.
| PHP is a very... comfortable scripting language to develop web-pages
| (similar to ASP, but more easy), and stop there.
| Perl is perfect to do a lot of other activities (I use it to process
| text files).
| They rarely works together.
| If you can, learn both of them!
|
|
| all'adr
|
| Marted�, 1 Apr 2003, alle 03:12 Europe/Rome, Paul Kraus ha scritto:
| > Is perl used to compliment PHP or is perl better to use by itself
| > instead of php? How does one relate to the other. I am coming from a
| > asp.NET vp.NET .asp vb background and am trying to get away form M$. So
| > I am looking at apache php and perl trying to figure out how all the
| > pieces fit together.
| >
| > To show you my ignorance I thought php and apache where the same thing
| >
| > :)
| >
| > Paul
| >
| >
| > --
| > To unsubscribe, e-mail: [EMAIL PROTECTED]
| > For additional commands, e-mail: [EMAIL PROTECTED]
--
- Jim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]