in reply to Splitting file data in to anonymous hashes
($key,$ytd{$key}->{oct01}) = split(',',$line);
Each time through the loop, this line sets $key to the customer name. It also sets $ytd{$key}->{oct01} to the YTD value but it's using the previous value of $key since $key is set at the same time. So the first time through, it sets $ytd{''}->{'oct01'}
|
|---|