A "dirty" way to do it should be
$var->{'config.datastoreUrl'}[0]{name}
But since it's an object you should rather use a getter from its class VirtualMachineConfigInfoDatastoreUrlPair
Something like (speculating about the right method)
$var->{'config.datastoreUrl'}[0]->get_name()
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re: help on dereferencing structure
by LanX
in thread help on dereferencing structure
by natxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |