error message: Filehandle FH opened only for output at C:\Andre\Perl_scripts\timeout.pl line 26 .my $sql_log = "c:\\temp\\sqllog.out"; open (FH, ">$sql_log") or die "can't open file $! \n"; while (<FH>) { print "test"; } close FH;
Edit Masem 2001-11-27 - CODE tags
In reply to Basic, writing to a file by dreman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |