Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: How to store multiples lines/records in a array

by NetWallah (Abbot)
on Jul 03, 2013 at 03:08 UTC ( #1042140=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to store multiples lines/records in a array
in thread How to store multiples lines/records in a array

scalar (@values) will give you the number of elements in @values.

Since you are printing 6 per line, the number of lines will be:

my $linecount = int((scalar(@values) +5)/ 6); #Rounding up.
use ($linecount -1) instead of the hard coded 5.

You subtract one because the starting value is 0.

             My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.


Comment on Re^3: How to store multiples lines/records in a array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-09-18 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls