One problem:
my $find = <STDIN>;
the scalar $find will be terminated with a newline. You need to chomp this string (as you did with the filename) before you use it in the regex.
In reply to Re^3: PERL STRING QUESTION
by AnomalousMonk
in thread PERL STRING QUESTION
by vikuuu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |