badrinath chitrala wrote: > Hi Hello,
> open FILE, "file.txt" or die $!; open() creates the filehandle FILE which is associated with the contents of the file "file.txt". > while (<f:/file.txt>) You are using a file glob to get a list of file names which is the same as doing: while ( defined( $_ = glob 'f:/file.txt' ) ) You want to use the newly created filehandle instead: while ( <FILE> ) Which is the same as: while ( defined( $_ = <FILE> ) ) Which reads from the contents of the file. perldoc -f open perldoc perlopentut perldoc -f readline perldoc perlop (I/O Operators section) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>