in reply to Re^5: EMail problem in outlook
in thread EMail problem in outlook
$var will only be set to the very last line of your file, not the whole file.open(FH,"file.txt"); while(<FH>) { $var = $_; print "$var\n"; } close(FH);
open(FH,"file.txt"); my $var; while(<FH>) { $var .= $_; } close(FH);
|
|---|