It seems something wrong with the code " my $output = $session->param('USERS');"
if this is the correct way to load session data?
my $newduserid = 100;
my $output = $session->param('USERS');
if (exists $output {$newduserid}){ print" $userid1 is most probabley has been registed before. \n"; }else{ print print" you are encouraged to registe again. \n"; }
the session data look like
USERS => [{name => 'name1' ,userid=> 1},{name => 'name2' ,userid=> 2}]
if this is the correct way to load session data?
Code:
my $newduserid = 100;
my $output = $session->param('USERS');
if (exists $output {$newduserid}){ print" $userid1 is most probabley has been registed before. \n"; }else{ print print" you are encouraged to registe again. \n"; }
the session data look like
USERS => [{name => 'name1' ,userid=> 1},{name => 'name2' ,userid=> 2}]