in reply to How to access an unknown number of CGI variables in a CGI script

The name doesn't need to change

Use CGI/CGI::Simple.. param method, it will return a list of each row you added

or use Plack::Request body_parameters , its returns a Hash::MultiValue, something you might build using CGI yourself

  • Comment on Re: How to access an unknown number of CGI variables in a CGI script

Replies are listed 'Best First'.
Re^2: How to access an unknown number of CGI variables in a CGI script
by muba (Priest) on Jan 08, 2013 at 14:12 UTC
    The name doesn't need to change (...) param method, it will return a list of each row you added

    Demonstration:

    > perl -MCGI=param -E ' say "student=$_" for param("student"); ' student=foo student=bar student=baz student=foo student=bar student=baz >

    Note that this is similar to space_monk's functional style example below.