Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: form parsing

by jeroenes (Priest)
on Oct 09, 2001 at 13:40 UTC ( #117682=note: print w/ replies, xml ) Need Help??


in reply to form parsing

For a blessfull change, try to use the CODE tag.

Second, read the docs, eg CGI.

Than, your code can be shuffled into:

for my $field ($cgi->param){ $cgi->param($field) =~ s/search/replace/g; }

Try subsequently to rethink your regexes...

Jeroen
"We are not alone"(FZ)

Update /me humbly crawls in the dust, ashamed of the mere suggestion, let alone the naked fact, of the use of $cgi->param as an l-value. I just was not thinking, that's the only thing I can come up with. That's not even an excuse. As a self-proclaimed punishment:

open LETEVERYBODYKNOW, ">/var/www/index.html"; print LETEVERYBODYKNOW "Thou shall not use CGI's param as an l-val +ue\n" for 1..117682;
I believe merlyn and tilly have some runable code, actually.


Comment on Re: form parsing
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-07-28 22:30 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 (260 votes), past polls