good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Open Remote Directoryby sgifford (Prior) |
on May 09, 2007 at 16:41 UTC ( [id://614444]=note: print w/replies, xml ) | Need Help?? |
The specific problem you're facing is that perl's opendir only works on local directories, and the more general one is that HTTP doesn't provide any standard way to get a listing of files in the directory. You will have to either parse the Web page (using something like HTML::TreeBuilder), or else access the remote directory with a different protocol (like FTP with Net:FTP, WebDAV with HTTP::DAV, or ssh with File::Remote).
In Section
Seekers of Perl Wisdom
|
|