in reply to Re: Re: Re: Breaking output lines into N-element chunks
in thread Breaking output lines into N-element chunks
unusual looking sub
If subs with empty prototypes and only a return value are unsual looking to you, better read some Perl :) It's one of the most occuring idioms, very useable, fast and reasonably clear.
Besides, ALLCAPS names often indicate constants too, and if you don't recognise it as a constant, ANY coder (not just Perl coders) should be able to deduct its meaning within a matter of seconds.
its up to YOU to document these quirks to future programmers.
Anyone who doesn't see it's a constant (single return value, empty prototype, name in ALLCAPS, defined before any other sub and often found in @EXPORT), should not be maintaining my code. I like my code to be maintained by programmers, not HTML monkeys. If someone hires a non-coder to do code maintenance, that's not my problem :). And when it does become my problem, I get paid for it ;).
No offense meant.
Yes, I reinvent wheels.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Re: Breaking output lines into N-element chunks
by demerphq (Chancellor) on Apr 12, 2002 at 15:05 UTC | |
by Juerd (Abbot) on Apr 12, 2002 at 16:46 UTC |