in reply to Troubles w/ CGI::FormBuilder dispatch logic

Can someone please point out what is surely an obvious blunder I am making and overlooking?

Sorry, its too hard to follow, but I did notice $mode is always undefined

my $mode; ######### this one always undefined if(defined($hh_values->{'hh_id'})){ my $mode = $form->cgi_param('mode') || 'canvas'; ########### NEW VARIABLE CALLED MODE } else { $hh_values = $self->_obtain_next_household(); $form->cgi_param( name => 'mode', value => 'next_hh' ); }

Replies are listed 'Best First'.
Re^2: Troubles w/ CGI::FormBuilder dispatch logic
by hesco (Deacon) on May 15, 2008 at 16:22 UTC
    Yes, thank you. I had already fixed that in my sandbox, after copying the code into the SoPW page. -- Hugh
    if( $lal && $lol ) { $life++; }