Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, not everything needs to be coded like you're showing it off on github. Not that you can't do some nifty stuff, elegantly, in Perl.

Should you write your entire codebase in Perl, in 2018? hell no

But you probably shouldn't be writing anything more than 10-20 lines in Bash, either, and this class of organically evolving script, with little attention to design at the start (much like the language itself) is where Perl really shines.



I always regret writing bash scripts, which start really simple, but tr require refactoring into perl after a few days.

Only problem with perl I've run into is analysing text at speed - 60,000 lines a second of regex doesn't work on a raspberry pi or other low end processor.


Just use awk.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: