Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
foreach my $file (@file) { my $filename = $file->{'filename'}; my $content = $file->{'content'}; open(FILE, ">$filename") or die "Can't open $filename $!"; print FILE $content; close(FILE); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quickest way to write multiple files
by saskaqueer (Friar) on Jun 08, 2004 at 08:34 UTC | |
by Anonymous Monk on Jun 08, 2004 at 08:48 UTC | |
|
Re: Quickest way to write multiple files
by graff (Chancellor) on Jun 08, 2004 at 09:45 UTC | |
|
Re: Quickest way to write multiple files
by ysth (Canon) on Jun 08, 2004 at 09:34 UTC | |
by BrowserUk (Patriarch) on Jun 08, 2004 at 09:51 UTC | |
|
Re: Quickest way to write multiple files
by BrowserUk (Patriarch) on Jun 08, 2004 at 09:29 UTC | |
|
Re: Quickest way to write multiple files
by bart (Canon) on Jun 09, 2004 at 06:45 UTC |