Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can't use string (">gamelog.txt") as a symbol ref while "strict refs" +in use at shannon.pl line 31, <STDIN> line 1.
my $gamesave = "gamesave.txt"; open(LOG, ">$gamesave") or die "Error: $!"; print LOG join(" ", @secrettext_new); close(LOG) or die "Error: $!"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opening a file for writing
by shmem (Chancellor) on Jul 13, 2007 at 13:01 UTC | |
|
Re: Opening a file for writing
by rpanman (Scribe) on Jul 13, 2007 at 12:36 UTC |