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

Unfortunately Perl coding culture includes a few deeply entrenched bad habits such as using horribly short variable names, overuse of the default variable, and using regex when a simpler string match would suffice. These subtle bad habits make typical perl code hard to follow and thus reflect badly on the language itself.


That's not really a current concern for the perl community. That was true 15 years ago.

Lots of 15-year-old code is out there on the internet for folks to sneer at.


In my opinion, the fact that 15-year-old code is floating about and still relevant should be something to appreciate.


For some people, though, any use of the default variable is overuse. Nothing to be done about that whine.


IMHO it's OK to use $_ in small scope contexts, like in a tight loop, but very offensive when $_ refers to an operation that occurred three pages back.




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

Search: