in reply to Re: Re: Re: Breaking output lines into N-element chunks
in thread Breaking output lines into N-element chunks

while i agree with you that using the constant module (pragma?) is better for maintainence, i don't like the syntax at all. i'd prefer syntax like

use MyConstant; MyConstant LIMIT { 4 };
which would create a sub named LIMIT with an empty prototype. unfortunately, i don't know how to do this. i think a well-written module with this functionality would satisfy both syntax and maintainence issues.

can someone point me in the right direction towards writing a module like this?

~Particle ;Þ

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 14:15 UTC
    Im not really sure. I have a feeling that you'd need something like a filter module.

    To be honest considering the tradeoffs I would just stick with contant. The syntax isnt _that_ bad..

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.