in reply to hash as an object property
You need to store a reference to the array, like this:
$node->{smtp} = {timeChanged=>99999999, status=>re};
You can then access individual fields like this:
my $smtp_status = $node->{smtp}{status};
But hopefully you'd be writing accessor functions, right?
--"The first rule of Perl club is you don't talk about Perl club."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: hash as an object property
by dhammaBum (Acolyte) on Oct 02, 2001 at 13:01 UTC | |
by davorg (Chancellor) on Oct 02, 2001 at 13:09 UTC |