I am using CGI::Application 2.1 right now.

When I get back on UNIX at home I'll try my code under 2.3 and post my
results on the list.

-- Cory

PS : I'm not sure if it makes a diff, but

# 'ABC' => 'DEF',

is that comma supposed to be there?

> -----Original Message-----
> From: Martijn van den Burg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 07, 2002 10:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [cgiapp] Re: Accessing 'PARAMS'
>
>
> Hm, mine doesn't print the parameter value, only its name...
>
> In onlineacademy.cgi:
>
> ---
> my $webApp = onlineacademy->new(
>                                 PARAMS => {
>                                           'ABC' => 'DEF',
>                                 }
>                          );
> ---
>
> in onlineacademy.pm:
>
> ---
> sub print_page {
>    my $self  = shift;
>    return $self->param();
> }
> ---
>
> This prints just 'ABC'.
>
> I'm using C::A version 2.3.
>
>
> On Tuesday 07 May 2002 16:10, you wrote:
> > I call
> > ---
> >
> > my $webApp = Notes::Presenter->new( PARAMS => { 'config_file' =>
> > 'D:\\Inetpub\\etc\\nikki1\\training\\Note_Presenter.xml'} );
> >
> > ---
> >
> > Then I use
> > ---
> >
> >     my $cfg_file = $self->param('config_file');
> >
> > ---
> >
> > Martijn van den Burg writes:
> > > Hi,
> > >
> > > Either I overlooked this in the doc, or it isn't very clearly
> described.
> > > How do I access the parameters which are set with the PARAMS
> parameter of
> > > the new() method?
> > >
> > > my $self = widget->new(
> > >                        PARAMS => {
> > >                                   'uid' => $ENV{'REMOTE_USER'},
> > >                        }
> > >                    );
> > >
> > > --
> > > Martijn
> > >
> > > ---------------------------------------------------------------------
> > > Web Archive:  http://www.mail-archive.com/[email protected]/
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > Web Archive:  http://www.mail-archive.com/[email protected]/
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> +----------------------------------+
>         Martijn van den Burg
>   ASML, CS PPC Inform@tion Systems
>      Voice: +31 (0)40 268 3856
> +----------------------------------+
>
> ---------------------------------------------------------------------
> Web Archive:  http://www.mail-archive.com/[email protected]/
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to