Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

by kennethk (Abbot)
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003845]
[Corion]: Somehow I'm happy that my Javascript mostly targets Firefox nowadays :)
[Corion]: But my conundrum currently is how to do lightweight SQL for maintaining my user database, instead of home-cooking too much of an ORM ;)
[Corion]: But maybe Just Enough of an ORM might be the ticket, that is, just locked hashes read from the DB :)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2018-03-21 12:07 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.