Hello all...

In my example-driven world I find [something like] this in
'CGI Programming with Perl', constructed in main::

if ($CGI->param("Screen3")) {
   showmeScreen3($CGI);
}
elsif ($CGI->param("Screen2")) {
   showmeScreen2($CGI);
}
else {
   showmeScreen1($CGI);
}

This is a pretty old book and I'm wondering if there's a
newer, better way? I wish to be able to achieve what would
be the results of this (if it were possible):

if ($CGI->param("Screen3")) {
   showmeScreen3($CGI, %widgets);
}
...

but, of course, %widgets doesn't exist at compile time.
Something I read in perlreftut made me think I might be
able to use a reference here. Possible?

Alternatively, is there syntax that allows passing a hash
using a hidden input variable? i.e.:

<input type=hidden name=widgets value="%widgets">

Thanks,
Jon



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to