dreman has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Basic, writing to a file
by Masem (Monsignor) on Nov 27, 2001 at 19:39 UTC | |
by suaveant (Parson) on Nov 27, 2001 at 19:42 UTC | |
by dreman (Acolyte) on Nov 27, 2001 at 19:48 UTC | |
|
Re: Basic, writing to a file
by IlyaM (Parson) on Nov 27, 2001 at 19:53 UTC | |
by orkysoft (Friar) on Nov 27, 2001 at 22:03 UTC |