Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: linked list using associative hash

by almut (Canon)
on Jul 26, 2010 at 11:29 UTC ( [id://851357] : note . print w/replies, xml ) Need Help??


in reply to Reaped: linked list using associative hash

Maybe the problem is that you're using @subinfo (which you're overwriting for every input line) in the final foreach loop when you check if ($subinfo[$count] <= 50), so what you get is just the values of the last line...