CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
searching dirs



May 31, 2000, 7:16 AM

Post #1 of 1 (1346 views)
searching dirs Can't Post

Hi all

I am currently putting together an intranet site on a server with Apache. the things of it is that i got this coop position but i do not know wnything about unix/linux and perl. For teh past week i have been reading books and articles on the web and actually wrote my very first ever CGI script the other day.

The form lets a user choose a document and then goes and retrieves the document from a hash i created and provides a link to that document. This isn't too bad because there are only 20 documents to choose from BUT my problem arises now. I have to do the same thing with a directory of 99 files. As you can imagine i really do not want to sit and waste space creating a hash for 99 files. Is there a way i can search a directory for a specific file and do that same thing i did with the first one by providing a direct link to it or better yet, can i just search through and automatically fire the document to the browser?

Any help would be greatly appreciated.

p.s. sorry about the long message


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives