in reply to Is there a module to copy files from remote machines to my web server?
The nearly-standard LWP family of modules is probably what you want, if you're trying to nab a web page. It can be as simple as:
use LWP::Simple; my $code = getstore ('http://www.foo.com/stuff/gewgaws.html', '/my/fil +e/gewgaws.html'); print "Succeeded!\n" if $code == 200;
If you're using some protocol other than HTTP, check out Net::FTP and the like.
As for writing a client from scratch that will do the job, well ... you're probably better off telling those who get the client to get LWP, if you're distributing the client; and if it's that you don't administer the client machine, look into installing the LWP modules into directories you can write to. How to do this is covered in perlmodinstall.
HTH
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Newbie needs help
by smonk (Initiate) on Mar 26, 2001 at 21:59 UTC | |
by arturo (Vicar) on Mar 26, 2001 at 22:10 UTC |