I'm guessing you might be parsing the file name instead of the file. Try
while (my $line = <STDIN>) { print "Line: $line"; if ($line =~ /te/) { print "Match !\n"; } }
Then you should read File Input and Output
In reply to Re: Regular expression only matches a single character
by Eily
in thread Regular expression only matches a single character
by balgeary
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |