Cheers - L~Rmy %pal; while ( <FILE> ) { chomp; my ($key, $val) = split /,/ , $_, 2; $pal{$key} = $val; if ( $val eq $my_item ) { # some code } }
Update Added code to address testing values secondary question
In reply to Re: Hash Problem
by Limbic~Region
in thread Hash Problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |