Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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 ( #1012236=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^2: How to access an unknown number of CGI variables in a CGI script
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-07-08 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls