Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Error: Modification of a read-only value attemptedsub CreateConfig{ my ($file,@data) = @_; $file = $file.".new"; open(NFILE,">$file"); foreach my $item (@data){ printf NFILE "$item\n"; } close(NFILE); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Escaping special chars to add in a file
by Corion (Patriarch) on Apr 03, 2008 at 08:59 UTC | |
by kyle (Abbot) on Apr 03, 2008 at 15:10 UTC | |
|
Re: Escaping special chars to add in a file
by ikegami (Patriarch) on Apr 03, 2008 at 08:54 UTC |