Perhaps code a bit like this:
--my @services = qw(smtp http ssh); # list of services foreach (@services) { # Somehow get the details for the given service on # the given node. Here I'm assuming the existance of # a function that returns the required hash. my %details = get_details($node, $_); $node->{$_} = \%details; }
"The first rule of Perl club is you don't talk about Perl club."
In reply to Re: Re: Re: hash as an object property
by davorg
in thread hash as an object property
by dhammaBum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |