in reply to Regular expression only matches a single character

Given this code:

#!/usr/bin/perl # std.pl use strict; use warnings; while (my $line = <STDIN> ){ if ($line =~ /te/){ print "hi"; } }

...and this input file:

# std.txt a three text

This: perl std.pl < std.txt works, as does running perl std.pl and entering text on the command line, on both Windows and Linux.

How are you grabbing the file, and what does it contain?

-stevieb