sugar has asked for the wisdom of the Perl Monks concerning the following question:

dear all, can i open the files using perl program, like how we do in web ftp? like, listing directories,sub directories and files, by clicking on them and opening the files in a popup window? i am using cgi and apache web interface for my perl program !!! plz help :)

Replies are listed 'Best First'.
Re: opening files like web ftp style...
by moritz (Cardinal) on Oct 30, 2008 at 09:02 UTC
    If your question is "how do I get a directory listing with download links for a HTTP server", then the best answer is: by not using Perl, but by using the directory listing feature of your web server.

    I know Apache can do that out-of-the-box. Maybe you need to adjust your configuration, though.

    If that's not your question, please clarify it.

      you got it right... so if i dont use perl, how do i use the directory listing features ? as you said, it has to be done only by modifying apache config file? or any other ways? thanks for the reply :)
        I know of no other way than modifying the configuration, either by editing the main config file, or in a .htaccess file.

        Here's the documentation.

Re: opening files like web ftp style...
by cdarke (Prior) on Oct 30, 2008 at 09:25 UTC
    I think to OP is asking a different question than one concerned with the web server: like how we do in web ftp?.
    sugar, I think you want a GUI interface, which may be supplied by Perl/Tk. I suggest you search down that route, for example CPAN [Tk::FileDialog].
    (Maybe I'm reading the question differently/wrongly).
Re: opening files like web ftp style...
by Anonymous Monk on Oct 30, 2008 at 09:25 UTC