I'd suggest:
my $a_ext=quotemeta($a).$ext;
... because this will cope better when $a contains "special" characters such as "[" or "+".
In reply to Re^5: Looking up elements of an array in another array!
by tobyink
in thread Looking up elements of an array in another array!
by better
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |