in reply to Re^2: Function-oriented style CGI accessing form parameters
in thread Function-oriented style CGI accessing form parameters

Sounds like you're doing something weird in there; you should probably check your error logs or do the full use CGI::Carp qw(fatalsToBrowser warningsToBrowser);. All those examples should work fine.

Another thing you might consider is the Vars() idiom is a little strange today. There is no reason to avoid the param() function in favor of it. Your code above becomes (with a little HTML formatting help):

print '<ul>'; for my $sri_variable( param() ) { print '<li>', $sri_variable; print '<ul>'; for my $variable_value( param($sri_variable) ){ print li($variable_value); } print '</ul></li>'; } print '</ul>';

Make sure to use strict; use warnings; too. It looks like you're not. (update: fixed bad HTML nesting.)

Replies are listed 'Best First'.
Re^4: Function-oriented style CGI accessing form parameters
by hmbscully (Scribe) on Aug 03, 2005 at 21:14 UTC
    I usually use it, but it had gotten left out this time, so I put the use CGI::Carp qw(fatalsToBrowser warningsToBrowser); in and ended up with "begin failed--compilation aborted at /actapps/suitespot/cgi-bin/sri/tools.cgi line 9."

    Line 9 is the CGI::Carp line.

    LOL.
    I just can't win today.