in reply to Re: hash function
in thread hash function
use strict; use warnings; use Data::Dumper; use DB_File; my %words; tie %words, 'DB_File', 'words.db'; load() if $ARGV[0]; print Dumper \%words; sub load { my $cnt = 1; foreach my $key ( 'John Cleese', 'Graham Chapman', 'Eric Idle', 'Ter +ry Jones', 'Michael Palin') { $words{$key} = "Gumby $cnt"; $cnt++; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: hash function
by graff (Chancellor) on Oct 07, 2006 at 19:33 UTC | |
by chromatic (Archbishop) on Oct 07, 2006 at 19:50 UTC |