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.
In reply to Re: Simple/Quick question about opening creating a file using perl
by linuxer
in thread Simple/Quick question about opening creating a file using perl
by jdlev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |