Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by tobyink (Canon)
on Nov 14, 2012 at 16:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1003847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found