I'm trying to convert a hash of hashes to an array of hashes...

$hash isa hash reference...

my $array;
while ( my ($k, $v) = each %$hash ) {
        my $u = str2time($k);  #convert to unix timestamp
        $$array[$u] = $v;
}

result...
Segmentation Fault  (core dumped)...

Do I need to predeclare $array = *array{ARRAY} ?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to