Stamp_Guy has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my %TEST; my @fileData; dbmopen(%TEST, "mydata", 0777) || die "couldn't open the dbm"; open(TEST, "test2.txt") || die "Could not open the file for reading: $ +!"; while (<TEST>) { chomp; my ($key,@fileData) = split /\|/; $TEST{$key} = \@fileData; } close(TEST); print "$TEST{matthew20}->[1]";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Differences between normal hashes and DBM tied hashes
by petdance (Parson) on Jul 02, 2001 at 08:06 UTC | |
|
Re: Differences between normal hashes and DBM tied hashes
by davorg (Chancellor) on Jul 02, 2001 at 13:42 UTC | |
|
Re: Differences between normal hashes and DBM tied hashes
by DBX (Pilgrim) on Jul 02, 2001 at 09:13 UTC | |
|
Re: Differences between normal hashes and DBM tied hashes
by mugwumpjism (Hermit) on Jul 02, 2001 at 14:48 UTC |