It's hard to understand just what you're trying to do. Can you please give a Short, Self-Contained, Correct Example? Giving $fname a value and populating the @fNames array with a few typical values along with the corresponding expected contents of the @matchIndexes array would go a long way toward making things clearer. The line number of the warning message generated by the SSCCE will be helpful.
Give a man a fish: <%-{-{-{-<
In reply to Re: Q regex escape within variable
by AnomalousMonk
in thread Q regex escape within variable
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |