Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Breaking output lines into N-element chunks

by particle (Vicar)
on Apr 12, 2002 at 14:01 UTC ( [id://158577]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found