Gavin has asked for the wisdom of the Perl Monks concerning the following question:
Would below code allow me to check the contents of the hash? follow on from delimited tab text file. while (<INFILE>){ chomp; next unless (/\t/); my ($key, $value ) = split(/\t/, $_, 2); $values{$key}=$value; foreach $key (keys %value) { print OUTPUT "$values {$key}\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking Hash contents
by kiyose (Scribe) on Mar 08, 2006 at 21:56 UTC | |
|
Re: Checking Hash contents
by runrig (Abbot) on Mar 08, 2006 at 21:54 UTC | |
|
Re: Checking Hash contents
by GrandFather (Saint) on Mar 08, 2006 at 23:07 UTC |