I'm currently adapting a Perl script to work in a new environment. This feels even worse than doing Turbo Pascal development.

I guess there are tools that lessen the pain (there is apparently even an "IDE" for Perl called Padre), but OTOH getting to know these tools will probably take longer than the actual changes and testing them by using print.
Shared publicly