Re: Alternatives to highly nested hashes

2007-06-21 Thread Brad Baxter
On Jun 20, 7:33 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Well, sort of. Objects are simply intelligent data structures - structures > with > code as well as data that know how to perform operations on themselves. Not to put too fine a point on it, but early on when I was learning OOP, I often r

Re: Alternatives to highly nested hashes

2007-06-20 Thread Mathew
Rob Dixon wrote: > Mathew Snyder wrote: >> It looks like an object is what I want. Am I correct? Suppose I need >> to work >> with a bit of data that actually has 11 attributes. This would be an >> object of >> another type. However, I need to manipulate pieces of it >> differently. So I'm >>

Re: Alternatives to highly nested hashes

2007-06-20 Thread Rob Dixon
Mathew Snyder wrote: It looks like an object is what I want. Am I correct? Suppose I need to work with a bit of data that actually has 11 attributes. This would be an object of another type. However, I need to manipulate pieces of it differently. So I'm guessing I would create an object thus

Re: Alternatives to highly nested hashes

2007-06-20 Thread Mumia W.
On 06/20/2007 05:40 AM, Mathew Snyder wrote: It looks like an object is what I want. Am I correct? As always, it depends. Suppose I need to work with a bit of data that actually has 11 attributes. This would be an object of another type. However, I need to manipulate pieces of it differen

Re: Alternatives to highly nested hashes

2007-06-20 Thread Mathew Snyder
It looks like an object is what I want. Am I correct? Suppose I need to work with a bit of data that actually has 11 attributes. This would be an object of another type. However, I need to manipulate pieces of it differently. So I'm guessing I would create an object thusly: sub objectname {

Re: Alternatives to highly nested hashes

2007-06-20 Thread Rob Dixon
Mathew Snyder wrote: I'm probably going to be doing some work with data that would, based on what I already know of Perl, require me to create something along the lines of a HoHoHoHoHoHoHoHoH...not exactly representative but you get the idea. Is there a way to handle data with a lot of attribut

Alternatives to highly nested hashes

2007-06-20 Thread Mathew Snyder
I'm probably going to be doing some work with data that would, based on what I already know of Perl, require me to create something along the lines of a HoHoHoHoHoHoHoHoH...not exactly representative but you get the idea. Is there a way to handle data with a lot of attributes other than creating a