Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Creating a Moose object at run-time

by gnosti (Chaplain)
on Oct 23, 2015 at 00:01 UTC ( [id://1145707]=note: print w/replies, xml ) Need Help??


in reply to Re: Creating a Moose object at run-time
in thread Creating a Moose object at run-time

there's usually a simpler way, like what jeffa has suggested.

How about not using Moose at all? That seems the simplest.

Edit: I realize this sounds kind of snarky, but if you need ad-hoc behavior, Moose may not be the best fit.

Replies are listed 'Best First'.
Re^3: Creating a Moose object at run-time
by talexb (Chancellor) on Oct 23, 2015 at 14:26 UTC
      I realize this sounds kind of snarky ..

    Nope, that's fine -- I knew that the question I was asking was pretty open-ended. For now, I using just a hashref, and it's working just fine. My little script is processing over 12,000 records in just over two seconds, so I'm happy with the performance.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found