http://qs321.pair.com?node_id=679844

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

You've got a number of shell and Perl scripts under your care. Lately you've been eyeing a certain overgrown sometimes-problematic-but-generally-working shell script with a hankerin' to rewrite it in Perl -- including adding a few wishlist features to it while you're at it.

At what point do you rewrite that old shell script in Perl? When it's 100 lines long? 500? 1000?