P is for Practical | |
PerlMonks |
Re: Breaking output lines into N-element chunksby talexb (Chancellor) |
on Apr 11, 2002 at 16:53 UTC ( [id://158360]=note: print w/replies, xml ) | Need Help?? |
If you use splice you'll get something that works OK:
The groovy part about this is that if the array's empty, nothing prints. --t. alex "Here's the chocolates, and here's the flowers. Now how 'bout it, widder hen, will ya marry me?" --Foghorn Leghorn Update Well, mdillon remembered the map munge() part and I didn't. ++ to him.
In Section
Seekers of Perl Wisdom
|
|