Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Grouping of 2D arrays

by kfriman (Initiate)
on Apr 24, 2017 at 07:17 UTC ( [id://1188739]=note: print w/replies, xml ) Need Help??


in reply to Re: Grouping of 2D arrays
in thread Grouping of 2D arrays

Hi,

I would like to group a existing perl array. The array is created based on a parsed txt file.

while (my $row2 = <$fh2>) { chomp $row; my @records2 = split(';', $row2); my @items = ($records2[3], $records2[4], $records2[5], $records2[7], $ +records2[8]);

I know based on the file the quantity of items, so I have a if statement that knows when all the items are in the array. This if statement should also do the grouping and present the information to the user.

$colli_amount++; if ($total_colli_amount == $colli_amount) {}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-19 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found