in reply to Opening a file for writing
... the only change I made was to define @secrettext_new to avoid warnings.use strict; use warnings; my $gamesave = "gamesave.txt"; my @secrettext_new; open(LOG, ">$gamesave") or die "Error: $!"; print LOG join(" ", @secrettext_new); close(LOG) or die "Error: $!"
Update: Added perl versionThis is perl, v5.8.8 built for sun4-solaris-thread-multi
|
|---|