Linked by Thom Holwerda on Fri 10th Sep 2010 14:59 UTC
General Development Python programmers shouldn't get too smug. While many people agree that Python is designed in a way that makes it a highly readable language, there can still be problems with legacy, untested Python code too. Porting legacy Perl to Python can be a daunting task. In this article, learn some of the theory behind dealing with legacy code, including what not to do.
Thread beginning with comment 440570
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Why would I want to do it?
by pshangov on Sat 11th Sep 2010 21:26 UTC in reply to "RE: Why would I want to do it?"
pshangov
Member since:
2010-09-11

Many of Perl's weaknesses as listed above can be fixed to at least a certain extent by downloading a bunch of CPAN modules that basically modify the language


Modern Perl is ALL about CPAN. The core language distribution has been purposefully kept minimal and it is on CPAN where evolution takes place. In a similar vein key libraries (such as Catalyst) are purposefully kept minimal, with most goodies available as individual modules to be installed separately. A good Perl programmer is nowadays a programmer who knows her way around CPAN. This is an approach that is indeed harder at the start, but immensely more powerful in the long run.

Reply Parent Score: 2

Delgarde Member since:
2008-08-19

A good Perl programmer is nowadays a programmer who knows her way around CPAN. This is an approach that is indeed harder at the start, but immensely more powerful in the long run.


Yes and no. Having that resource is great for developers, but a *massive* pain for distribution. It's no good having a nice 100-line perl script that requires a dozen CPAN modules to be installed before you can use it.

Especially when you then try to do so on some random UNIX platform, and find the module doesn't compile on that platform because of some subtle difference between Linux and (e.g) HP-UX.

Reply Parent Score: 2

Bill Shooter of Bul Member since:
2006-07-14

Yeah, I've had to rewrite a few scripts to compensate for missing cpan modules.

Reply Parent Score: 2

sorpigal Member since:
2005-11-02

This is the truth. Perl without CPAN is like C with just the standard library. You can rebuild everything yourself, but why would you do that when you can go grab a .so?

Reply Parent Score: 2