Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Avoiding user-input in sub calls.

by bobn (Chaplain)
on Nov 01, 2003 at 14:23 UTC ( #303810=note: print w/ replies, xml ) Need Help??


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:

use CGI; my $q = CGI->new; my $value = $q->param('name');
Roughly equivalent to:
use CGI; my $value = CGI::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 the
use
and
new
statements. There's other reasons, but it's too early.

--Bob Niederman, http://bob-n.com

All code given here is UNTESTED unless otherwise stated.


Comment on Re: Re: Re: Avoiding user-input in sub calls.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-09-21 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls