[prev] [thread] [next] [lurker] [Date index for 2006/12/22]
On 22 Dec 2006, at 11:10, Earle Martin wrote: > The software that I hate the most is often the software I have to do > maintenance on. I'm a 100% Perl guy, and spend a lot of time with > other people's Perl. One of my pet hates is seeing this: > >> for ($i = 1 ; $i < scalar(@ARGV) ; $i++) >> { >> open INPUT,$ARGV[i]; > > Perl is not C. Yes, it lets you write do this. But you shouldn't. Why? > Because it has useful constructs like "foreach" that let you avoid > hateful neolithic code like this. We've just started enforcing perlcritic which has led to some interesting debate about fixing such shonky code at the risk of breaking it. One of my favourites is "return;" vs. "return undef;". -- Dave Hodgkinson - Music photography http://www.davehodgkinson.com/There's stuff above here
Generated at 14:01 on 28 Dec 2006 by mariachi 0.52