Sridhar R wrote on Mon, Feb 02, 2004 at 09:40:24PM -0800:
,----
| Well. Can anyone tell me what makes Perl to be a better choice over
| Python? That is, If I knew Perl _and_ Python and by default I was a
| Python programmer, when (for which task) would I choose Perl over
| Python? (I'm asking about Perl not the Perl community)
`----
Personally, I end up using perl for a many command line activities.
Stream processing is a very nice thing to do in perl. On OSes where
GNU awk / sed isn't used, perl is faster[1]. On the other platforms,
perl is atleast as fast as the other tool. Python might have its own
advantages (easy to write readable code, maintenance, etc.,.). But
again, people have also written large maintainable code in perl
(frozen-bubble looked good to me).
I guess we end up talking about the same thing all the time... :)
performance might also matter at times (hint: link to benchmark of
interpreted languages posted by multiple people about a month
ago. stfw the archives).
-Suraj
References:
[1] seem to have lost the URL. maybe 5 minutes of googling isn't
enough :(
--
+--------------------------------------------------<suraj@xxxxxxxxxxx>--+
|The attribute of sweet and cogent speech binds |
|the world, to act at ones will and command |
|(eloquence - 8), Thirukkural |
+--<http://www.symonds.net/~suraj/>-------------------------------------+