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

Dear Monks,
I do not want to reinvent the wheel and if there is a ready solution for my task please let me know. This is a web programming question using perl/cgi
I have files in a directory and records inside files. I want to organize links (href) to files by their names on the first level. Once a link is clicked it should show links as file records (second level).
It is like a web directory 2-level structure. Any advices are appreciated.
  • Comment on Two level web links organization question

Replies are listed 'Best First'.
Re: Two level web links organization question
by CountZero (Bishop) on Mar 14, 2009 at 20:41 UTC
    As usual, there are many ways to do this.

    One possible solution is by using HTML::AjaxTags and more specifically its htmlContent function.

    Or if you want to try a more complete Ajax framework, check HTML::Prototype and its link_to_remote method.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James