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 10375 Sep 28, 2007, 12:21 PM
Thread Re: [courierb] push new element to array
tandat 10069 Sep 29, 2007, 12:35 AM
Thread Re: [tandat] push new element to array
Wychwood 10088 Sep 29, 2007, 2:11 AM
Post Re: [Wychwood] push new element to array
courierb 9964 Sep 30, 2007, 6:41 AM
Post Re: [Wychwood] push new element to array
courierb 9989 Sep 30, 2007, 6:51 AM
Post Re: [tandat] push new element to array
courierb 9983 Sep 30, 2007, 6:53 AM
Thread Re: [tandat] push new element to array
courierb 9940 Oct 1, 2007, 1:02 AM
Thread Re: [courierb] push new element to array
tandat 9921 Oct 1, 2007, 5:36 AM
Post Re: [tandat] push new element to array
courierb 9863 Oct 1, 2007, 1:58 PM
Thread Re: [tandat] push new element to array
courierb 9859 Oct 1, 2007, 3:34 PM
Thread Re: [courierb] push new element to array
tandat 9844 Oct 1, 2007, 6:59 PM
Thread Re: [tandat] push new element to array
courierb 9831 Oct 2, 2007, 4:35 AM
Post Re: [courierb] push new element to array
courierb 9764 Oct 3, 2007, 12:09 AM