####
sub form_login {
my ( $self ) = @_;
my $nextrm = 'authenticate';
# Get CGI query object
my $cgi = $self->query();
my $email = $cgi->param('email');
$self->tmpl_path('./');
my $output = $cgi->header();
$output .= $cgi->start_html( -title => 'Employee Login Form' );
my $tmpl_obj = $self->load_tmpl( 'Login.tmpl' );
# $output .= Dumper ( $tmpl_obj );
# print $output;
# next line generates the error
$tmpl_obj->param(
LOGIN_URL => '/cgi-bin/Auth/Auth.cgi',
EMAIL => $cgi->param('email'),
PASSWD => '',
RM => $nextrm,
);
$output .= $tmpl_obj->output;
$output .= $self->dump_html();
$output .= $cgi->end_html();
return $output;
}
####
HTML::Template->param() : You gave me an odd number of parameters to param()! at Auth.pm line 51
####
Employee Login Form
$VAR1 = bless( {
'param_map' => {
'passwd' => bless( do{\(my $o = undef)},
'HTML::Template::VAR' ),
'email' => bless( do{\(my $o = undef)},
'HTML::Template::VAR' ),
'rm' => bless( do{\(my $o = undef)},
'HTML::Template::VAR' ),
'login_url' => bless( do{\(my $o = undef)},
'HTML::Template::VAR' )
},
'parse_stack' => [
\'
'
],
'options' => {
'memory_debug' => 0,
'double_file_cache' => 0,
'shared_cache' => 0,
'cache_debug' => 0,
'filepath' => 'Login.tmpl',
'global_vars' => 0,
'ipc_max_size' => 0,
'ipc_key' => 'TMPL',
'file_cache_dir_mode' => 448,
'vanguard_compatibility_mode' => 0,
'ipc_segment_size' => 65536,
'loop_context_vars' => 0,
'blind_cache' => 0,
'file_cache_dir' => '',
'debug' => 0,
'die_on_bad_params' => 1,
'stack_debug' => 0,
'ipc_mode' => 438,
'search_path_on_include' => 0,
'double_cache' => 0,
'file_cache' => 0,
'path' => [
'./'
],
'strict' => 1,
'timing' => 0,
'shared_cache_debug' => 0,
'associate' => [],
'filename' => 'Login.tmpl',
'case_sensitive' => 0,
'no_includes' => 0,
'cache' => 0,
'max_includes' => 10
},
'mtime' => 1087914359
}, 'HTML::Template' );