Personally, I would use a different data structure for your @list_of_file: %list_of_file = ( '/home/camel/file' => 42, ...); and then defined $list_of_file{$find_file}.
However, given the data structures that you have, may I suggest looking at grep and index?
--MidLifeXis
In reply to Re: Using a Variable as a Match Expression
by MidLifeXis
in thread Using a Variable as a Match Expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |