On Aug 1, Tom Allison said:

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

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

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

The problem is that $u, your array index, is an ENORMOUS integer. You need to find some other way to index your array.

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

--
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