Re: Hashes of Hashes

2006-12-29 Thread John W. Krahn
Jason Malburg wrote: > Hi, Hello, > I'm working on a complex data structure with hashes of hashes and > hashes of arrays and I noticed a weird behavior I was hoping someone > could explain. Put these two lines at the beginning of your program: use warnings; use strict; and p

Re: Hashes of Hashes

2006-12-29 Thread Jen Spinney
On 12/28/06, Jason Malburg <[EMAIL PROTECTED]> wrote: Hi, I'm working on a complex data structure with hashes of hashes and hashes of arrays and I noticed a weird behavior I was hoping someone could explain. Here's a sample: $Data{US17}{1}{GROUP} = "STRING"; $Data

Hashes of Hashes

2006-12-29 Thread Jason Malburg
Hi, I'm working on a complex data structure with hashes of hashes and hashes of arrays and I noticed a weird behavior I was hoping someone could explain. Here's a sample: $Data{US17}{1}{GROUP} = "STRING"; $Data{US17}{1}{GROUP}{.001} = 5; $Data{US17}{1}{GROUP}{.002} = 6;

cross-thread: this applies to storing hashes of hashes

2002-11-16 Thread Paul
ther a hash of hashes, hash of arrays, or similar. > > One possible solution depends on your data structure. > Frequently hashes of hashes are convenient, but can > eat up a lot of memory and program speed when they > get large. On the other hand, if your keys allow it, > you can

Hashes of hashes..

2002-02-10 Thread Lorne Easton
Hi all, Another simple one, I hope. I have data like this. Computername:Description:Failed Pings At present I am putting this data into seperate arrays and using an index to get it out in order. Not an extremely efficient way to do this and I will need to add more fields later and the like. I

problem with a Hash of,Hashes of Hashes and MLDBM

2001-08-17 Thread Kiarash
DBM file, and I use Hashes of Hashes and this kind of structures . for getting a user ID,name and password and add it to DBM file i did like this.. for example ,i only write useful part of my code my %user_info; #for Containing User Information my $userDB = "UserDB.dbm"; #the fil

problem with a Hash of,Hashes of Hashes and MLDBM

2001-08-17 Thread Kiarash
DBM file, and I use Hashes of Hashes and this kind of structures . for getting a user ID,name and password and add it to DBM file i did like this.. for example ,i only write useful part of my code my %user_info; #for Containing User Information my $userDB = "UserDB.dbm"; #the fil

problem with a Hash of,Hashes of Hashes and MLDBM

2001-08-17 Thread Kiarash
in one DBM file, and I use Hashes of Hashes and this kind of structures . for getting a user ID,name and password and add it to DBM file i did like this.. for example ,i only write useful part of my code my %user_info; #for Containing User Information my $userDB = "UserDB.dbm";

Re: Printing a array of hashes of hashes of arrays

2001-07-31 Thread Michael Fowler
On Tue, Jul 31, 2001 at 05:34:39PM -0500, Chris Garringer wrote: > I have a program that has an array of days of the month, the array value > $is a hash, the value of the hash is a hash, and its value is an array > $logs[$day]{}{}[] [snip] > Can someone show me how I can print this out? Why are y

Printing a array of hashes of hashes of arrays

2001-07-31 Thread Chris Garringer
I think that is right, I admit that Perl's data structures confuse me and I don' t have it right yet. I have a program that has an array of days of the month, the array value is a hash, the value of the hash is a hash, and its value is an array $logs[$day]{}{}[] This structure works fine to loa

Re: Sort+print hashes of hashes

2001-06-25 Thread Michael Fowler
On Fri, Jun 22, 2001 at 05:25:13PM +0200, Remko Lems wrote: > for $File (reverse (sort {$All_Scores{$a}{Trimmed} cmp > $All_Scores{$b}{Trimmed}} keys %All_Scores)) { > InsertSortedEntries ($File, $All_Scores); > } [snip] > > > no > 11 > 10 > 01 > 00 > > > > That's not exact

Sort+print hashes of hashes

2001-06-25 Thread Remko Lems
Hi, I'm trying to sort and print the numerical and text values inside hashes of hashes. It's almost functioning correctly. elsif ($User_Choice =~ /^T/i) { for $File (reverse (sort {$All_Scores{$a}{Trimmed} cmp $All_Scores{$b}{Trimmed}} keys %All_Scores)) { InsertSor