in reply to Simple/Quick question about opening creating a file using perl
Another idea is:
create the directory with mkdir if it not exists.
then use LWP::Simple's getstore routine to store the content directly in your desired file.
That saves you the work of opening the file, printing to it and closing it again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple/Quick question about opening creating a file using perl
by jdlev (Scribe) on Dec 29, 2008 at 20:08 UTC | |
by linuxer (Curate) on Dec 29, 2008 at 20:14 UTC | |
by AnomalousMonk (Archbishop) on Dec 29, 2008 at 20:27 UTC |