Gossamer Forum
Home : General : Perl Programming :

Re: [tandat] push new element to array

Quote Reply
Re: [tandat] push new element to array In reply to
It seems something wrong with the code " my $output = $session->param('USERS');"
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}]
Subject Author Views Date
Thread push new element to array courierb 10441 Sep 28, 2007, 12:21 PM
Thread Re: [courierb] push new element to array
tandat 10135 Sep 29, 2007, 12:35 AM
Thread Re: [tandat] push new element to array
Wychwood 10154 Sep 29, 2007, 2:11 AM
Post Re: [Wychwood] push new element to array
courierb 10030 Sep 30, 2007, 6:41 AM
Post Re: [Wychwood] push new element to array
courierb 10055 Sep 30, 2007, 6:51 AM
Post Re: [tandat] push new element to array
courierb 10049 Sep 30, 2007, 6:53 AM
Thread Re: [tandat] push new element to array
courierb 10006 Oct 1, 2007, 1:02 AM
Thread Re: [courierb] push new element to array
tandat 9987 Oct 1, 2007, 5:36 AM
Post Re: [tandat] push new element to array
courierb 9929 Oct 1, 2007, 1:58 PM
Thread Re: [tandat] push new element to array
courierb 9926 Oct 1, 2007, 3:34 PM
Thread Re: [courierb] push new element to array
tandat 9910 Oct 1, 2007, 6:59 PM
Thread Re: [tandat] push new element to array
courierb 9897 Oct 2, 2007, 4:35 AM
Post Re: [courierb] push new element to array
courierb 9830 Oct 3, 2007, 12:09 AM