Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: OOP: How to construct multiple instances of a class at once

by tobyink (Abbot)
on Nov 14, 2012 at 16:12 UTC ( #1003847=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @users = map { User->new($_) } @user_ids;
    
  2. or download this
    {
      package User;
    ...
    }
    
    my @users = User->multi_new(@user_ids);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003847]
help
Chatterbox?
[Eily]: indeed
[LanX]: I like http://www.comedix .de/lexikon/db/ nihamavasah.php = never have we water and http://www.comedix .de/lexikon/db/ erindjah.php = Air India xD
[LanX]: work!
[LanX]: thats very strange, I try to change two columns to "unique" and MySQL is complaining even that the data is already unique ???
[karlgoethebier]: Angie Singing
[karlgoethebier]: OK, OT

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2017-05-24 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?