Putting the regex delimiters into the variable may work with an eval, but this is just a wild guess.my $regex = "\\.$searchfor"; $file =~ m/$regex/;
In reply to Re: Turning an argument into a regexp
by le
in thread Turning an argument into a regexp
by LoneRanger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |