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

Re: CGI::Application - alternative to using $self->param?

by pc88mxer (Vicar)
on Nov 21, 2007 at 00:06 UTC ( [id://652038]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cgi = new CGI::Applicaton(...);
    $::global_var = $cgi;
    ... use $::global_var now anywhere ...
    
  2. or download this
    ...
    {
    ...
      our $global_var; # same as $::global_var and $main::global_var
      ...
    }
    
  3. or download this
    print $hash{'key'}    # same as print $webapp->param('key')
    $hash{'key'} = 3;     # same as $webapp->param('key', 3);
    
  4. or download this
    our %hash;
    my @all_params = $webapp->param();
    ...
      $hash{$p} = $webapp->param($p); #
    }
    ... use %hash instead of calling $webapp->param(...) ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-10-15 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.