Re: Accessing a remote folder



The opendir and other file access functions seem to pass the request
through the OS and let it deal with it.

I have used perl to read remote files and directories with no problems.

As long as the security account that you are running the perl script as
has access to the requested resource then you should have no problems


#read directory list of *.log files
opendir(DIR, "$dir");
@files = grep(/\.log$/,readdir(DIR));
closedir(DIR);

works for remote and local directories

Cheers
Ben

.



Relevant Pages

  • Re: Post Function Timer
    ... this doesn't have anything to do with Perl. ... The big problem is to efficiently compare this request with all recent ... This is solved if you compute a digest hash of the request. ... algorithm, or with any of the SHA- algorithms, such as SHA-1. ...
    (perl.beginners)
  • Re: FAQ 3.19 How can I make my CGI script more efficient?
    ... you know you'll need as well (to thwart off overhead for future AUTOLOAD ... When using the mod_perl API, it's a lot easier to write test cases too, just ... implement the required portions of the API as a "dummy request". ... I just wish perl would "come back" to where it used to be, ...
    (comp.lang.perl.misc)
  • Re: Post Function Timer
    ... this doesn't have anything to do with Perl. ... The big problem is to efficiently compare this request with all recent ... This is solved if you compute a digest hash of the request. ... algorithm, or with any of the SHA- algorithms, such as SHA-1. ...
    (perl.beginners)
  • Re: handle multiple submit button.
    ... > How can I write a perl script to process multiple request from submit ... there is no such thing as "multiple request from submit ... it may be that CGI will not be helpful. ...
    (comp.lang.perl.misc)
  • Re: mod_perl, "use lib", and stuff ...
    ... Under mod_perl the Perl interpreter can ... persist from one request to the next. ... Alternatively have a separate Apache instance per version. ... > create a program plus some modules for that program to use, ...
    (comp.lang.perl.modules)