in reply to Breaking output lines into N-element chunks
the mod in the conditional might mess up a maintainance programmer...or maybe even the original programmer. :-)
How about a C-style loop?
HTH --for( my $i=0; $i < scalar(@vars); $i++ ){ unless( $i % $LIMIT ){ print "\ndirective: "; } print &munge_var($vars[$i]) , " "; }
______________________________ s!!password!;y?sordid?binger?; y.paw.mrk.;;print chr 0x5b ;;; print;print chr(0x5b+0x2);;;;;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Breaking output lines into N-element chunks
by demerphq (Chancellor) on Apr 12, 2002 at 13:49 UTC | |
by FoxtrotUniform (Prior) on Apr 12, 2002 at 15:27 UTC | |
by demerphq (Chancellor) on Apr 15, 2002 at 09:55 UTC | |
by Juerd (Abbot) on Apr 15, 2002 at 10:05 UTC | |
by demerphq (Chancellor) on Apr 15, 2002 at 09:54 UTC |