In that case, a hash is an ideal solution (assuming your file is not too big as to cause memory problems for you). once you have the hash populated, getting a value is as easy as:
my $value_n = $hash{$str_n};
/prakash
In reply to Re: searching a file
by PrakashK
in thread searching a file
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |