Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: using variables to get data from CGI.pm's param() function

by Avox (Sexton)
on Apr 07, 2003 at 20:39 UTC ( [id://248732]=note: print w/replies, xml ) Need Help??


in reply to using variables to get data from CGI.pm's param() function

I withdraw my question. I've discovered the solution. *don't you just hate that!*
  • Comment on Re: using variables to get data from CGI.pm's param() function

Replies are listed 'Best First'.
Re: Re: using variables to get data from CGI.pm's param() function
by graff (Chancellor) on Apr 07, 2003 at 21:44 UTC
    What folks might hate about it is that you didn't give any clue about the solution that you found. This particular sort of question does come up a lot, and usually gets an answer like "yes, that's one way to do it, but there are better ways..."

    If you found a better way, don't be shy -- sharing it is bound to help someone else who's about to ask the same question again.

      Ack, sorry graff, you are completely correct. The solution is that it does work as you'd expect. I found a stupid little error that was causing the whole script to fail. Should have spent another 5 minutes debugging before writing this one up. I'm under the gun and then jumped the gun. :( Thanks for the reply.
Re: Re: using variables to get data from CGI.pm's param() function
by arturo (Vicar) on Apr 07, 2003 at 23:52 UTC

    Let's guess:

    foreach my $numbered_param ( grep /^prefix(\d+)/ , param() ) { # do something with $numbered_param }
    ?

    If not P, what? Q maybe?
    "Sidney Morgenbesser"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found