in reply to Re: Re: Avoiding user-input in sub calls.
in thread Avoiding user-input in sub calls.
I also keep seeing the use of my $thing = $q->param('whatever'); but am having trouble searching for it as I do not know what name it goes by...
This is the OO ('Object Oriented') interface to CGI.pm:
Roughly equivalent to:use CGI; my $q = CGI->new; my $value = $q->param('name');
except the OO way rends to be more flexible and earsier to modify (eg, you could write/use a module that inherits from CGI, by modifying only theuse CGI; my $value = CGI::param('name');
useand
newstatements. There's other reasons, but it's too early.
All code given here is UNTESTED unless otherwise stated.
|
|---|