RE: reference trouble

2005-08-01 Thread Tim Johnson
tic, so it's hard to tell. -Original Message- From: Tom Allison [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 7:03 PM To: Tim Johnson Cc: beginners perl Subject: Re: reference trouble [Tim Johnson] I've changed it out to a hash and create a seperate array of keys

Re: reference trouble

2005-08-01 Thread Tom Allison
Tim Johnson wrote: I think you need to explain a little better what you're trying to do here, and what you EXPECT to happen. For one thing, why are you using $u as your array index? Are you sure you don't want a hash? Well, I was expecting to be able to store numbers in an array so that t

Re: reference trouble

2005-08-01 Thread Jeff 'japhy' Pinyan
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 tha

RE: reference trouble

2005-08-01 Thread Tim Johnson
ay, August 01, 2005 5:07 PM To: beginners perl Subject: reference trouble 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 $

reference trouble

2005-08-01 Thread Tom Allison
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 predecl