News for hackers. Stuff that matters.
Re:Problem solving with Unix commands by b2gills on Monday February 18, 2019 @06:42PM (#19195530)
Well Perl is a real language, so of course it makes it more difficult to say “screw it, I'm redoing this in a real language”.

That said the Perl that you write in a one-liner should be different than the Perl that you write when the complexity rises.

If you have more than a few hundred lines, you probably need to move some of it out into a module. There should also be tests for that module. It might even make sense to structure it like a CPAN module so that you can use the existing tools to test and install it.

Re:Problem solving with Unix commands by jabl on Thursday February 21, 2019 @02:57PM (#19220027)
I have to admit the last time I wrote anything larger than short scripts in perl was in the perl 4 period (on HP-UX to boot). I eagerly awaited the perl 5 version of the Camel book, but in the end I jumped ship to python before getting seriously into perl 5.