Help for this page

Select Code to Download


  1. or download this
    my @users;
    foreach my $id (@userIds) {
           push (@users,User->new($id));
    }
    
  2. or download this
    my @users=User->new($id1,$id2,$id3,$id4);
    
  3. or download this
    sub new {
        my $proto = shift(@_);
    ...
        my $href = GETSQL("SELECT user_name FROM users WHERE user_id = $us
    +erId");
        @{$self}{keys %{$href}} = values %{$href};
            return $self;