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 kennethk (Monsignor)
on Nov 14, 2012 at 16:06 UTC ( #1003845=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub new {
        my $proto = shift(@_);
            my $class = ref($proto) || $proto;
    ...
    
            return @results;
    }
    
  2. or download this
    my @users = map {User->new($_)} @userIds;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003845]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-12-20 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls