Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Best way to parse CGI params

by Caillte (Friar)
on Feb 15, 2002 at 11:15 UTC ( #145663=note: print w/replies, xml ) Need Help??

in reply to Best way to parse CGI params

Friar II - Son of Friar

Why iterate?

my %vars = $cgi->Vars();

This page is intentionally left justified.

Replies are listed 'Best First'.
Re: Re: Best way to parse CGI params
by rob_au (Abbot) on Feb 15, 2002 at 11:43 UTC
    You know, that strangely looks like the saint way of doing things :-)

    Although, if you really want to talk uber-demi-God way of doing things, look into the source of and look at the way Lincoln D. Stein has implemented the backward-compatible (with Steve Brenner's method of Vars with surprisingly little code ...

    sub Vars { my $q = shift; my %in; tie(%in,CGI,$q); return %in if wantarray; return \%in; }


    perl -e 's&&[@.]/&&s&.com.&_&&&print'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://145663]
[planetscape]: sleep well, Corion
[stonecolddevin]: erix seems pretty good, i listened to "So Many Roads" and it was nice. Not everyone's cup of tea but this guy can absolutely shred, he and the guy from Mastodon are definitely up there: https://www. v=VzhMkSN9dQc
[erix]: ha, good stuff - loud and fast...
[stonecolddevin]: here's some Mastodon for when you have 13 minutes to have your mind blown: https://www. v=4pvfQtUhtNE

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-06-22 21:47 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (531 votes). Check out past polls.