hallikpapa has asked for the wisdom of the Perl Monks concerning the following question:
$line_pointer{$cols->{1}}{"numberOfLines"} Should containforeach my $row ( keys %$rows ) { my $cols = $rows->{$row}; if ( $cols->{0} ) { $line_pointer{$cols->{1}} = $cols->{1} +; $line_pointer{$cols->{1}}{"numberOfLin +es"} = $counter++; } }
But instead contains:$VAR1 = { '1' => '2' };
Updated with my code, but apparently my looping counter sucks.$VAR1 = { '1' => '1' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grouping values in a hash together (Updated
by siva kumar (Pilgrim) on Nov 26, 2007 at 07:45 UTC |