http://qs321.pair.com?node_id=503959


in reply to What is cgi-lib.pl and how do I use it?

From personal experience, I urge you to please follow the advice of our fellow monks and convince your client that should use CGI.pm. If you cannot sway them, then turn around, run like hell and don't look back. No, seriously. :-)

bassplayer

  • Comment on Re: What is cgi-lib.pl and how do I use it?

Replies are listed 'Best First'.
Re: What is cgi-lib.pl and how do I use it?
by johnny0723 (Novice) on Oct 31, 2005 at 13:36 UTC
    Hi Everyone, thanks for the feedback. It really sounds like CGI.pm is what I should be using. However, let me provide some more details of my task, and perhaps it will make more sense. 1. Build an array of files in a directory 2. print the array of files 3. modify the print so it displays links to them 4. Modify this cgi program so it allows parameters to be passed and displayed. This is apparently where I must use cgi-lib.pl. I went to the home page of cgi-lib.pl and from the example I saw there, I figured that cgi-lib.pl is a library with a bunch of sub routines that can help me get input. Sorry for such elementary questions. I'm new to programming and perl. Is there a book besides the llama that you guys can recommend for a beginner? Thanks a bunch! John

      Is this homework? It reads like homework. We don't really like helping people with homework.

      CGI.pm will do all that you need. And probably easier than you would do it with cgi-lib.pl.

      As for a book, Beginning Perl is available online and it includes an Introduction to CGI.

      --
      <http://dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

        Hi, No this not for homework. I recently moved up from doing support to becoming a software support analyst. Its a learn on the job type of thing and Perl is what I need to learn for most of what I do. I will look into the book you've recommended. Thanks a bunch. -John