Results 1 to 2 of 2

Thread: param length

  1. #1
    Join Date
    Jan 2005
    Los Angeles, CA

    param length

    How do I calculate the number (i.e. the length) of params sent to my PERL program? e.g. If the number of params is 0 then do such-and-such otherwise do blah-blah.
    (assuming the names of the params are unknown)

    If you know how to do this, just show me how by assigning the number of params to a variable.

  2. #2
    Join Date
    Dec 2002
    Pleasanton, CA
    my @cgi_params = param();
    The array will contain a list of the params. Now get the length of the array.

    I think that works in the 'functional' mode of CGI

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles