Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Breaking output lines into N-element chunks

by FoxtrotUniform (Prior)
on Apr 11, 2002 at 16:33 UTC ( [id://158356]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # current output
    directive: v0 v1 v2 v3 v4 v5
    ...
    # desired output
    directive: v0 v1 v2 v3
    directive: v4 v5
    
  2. or download this
    print "directive: ";
    for my $var (@vars) {
      print munge_var($var), " ";
    }
    print "\n";
    
  3. or download this
    my $v_count = 0;
    print "directive: ";
    ...
      }
    }
    print "\n";
    
  4. or download this
    my $v_count = 0;
    for my $var (@vars) {
    ...
      print &munge_var($var), " ";
    }
    print "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://158356]
Approved by Rex(Wrecks)
Front-paged by Rex(Wrecks)
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found