in reply to Multiple CGI parameters

I think I am misunderstanding the problem here. Why is print "bla bla $params[0] bla\n"; not as convenient as print "bla bla $param1 bla\n"; ?

I'm so adjective, I verb nouns!

chomp; # nom nom nom

Replies are listed 'Best First'.
Re^2: Multiple CGI parameters
by sstevens (Scribe) on Aug 15, 2008 at 16:07 UTC
    You're right, it's just as convenient. The only problem is it would be hard to keep track of which parameters are where if accessed via $params[0], $params[1], etc. This is assuming that the parameters aren't actually param1, param2, .., but something like id, pw, ... If they were just param1, param2, .., then that would work just fine!