K
kk
Hi,
I am trying to write a script that downloads a file from a website everyday.
Can I just use the copy command (i.e. use File::Copy)? Does it support URI?
I wrote something like below, but it does not seem to work.
use File::Copy;
copy(www.abc.com\abc.pdf, "C:\myfolder\") or die "File cannot be copied.";
Is there a better way to do this?
Sorry, it seems like a very easy thing to do, but I am doing something
wrong...
Thank you
I am trying to write a script that downloads a file from a website everyday.
Can I just use the copy command (i.e. use File::Copy)? Does it support URI?
I wrote something like below, but it does not seem to work.
use File::Copy;
copy(www.abc.com\abc.pdf, "C:\myfolder\") or die "File cannot be copied.";
Is there a better way to do this?
Sorry, it seems like a very easy thing to do, but I am doing something
wrong...
Thank you