On 3/30/07, <> wrote:
> Hi,
>
> There are times when I want to store items in a hash, and yet refer
> the items
> using class/object method syntax.
>
> For example, I may want to do this:
> myhash['aaa'] = 'bbb'
> and then be able to refer to the 'aaa' element either as
> myhash['aaa']
> --or--
> myhash.aaa
>
> I started writing my own class to do this, but I wanted to check to
> see if anyone had
> already done so.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!