in reply to Re: dereferencing ... again
in thread dereferencing ... again
I dit try printingforeach (@$add_info) { if ( $_->identifierType->key eq "ServiceTag" ) { my $test = $_->identifierValue; print $test, "\n" ; } }
And got this error:print $_->{identifierValue}, "\n";
But if I assign that to a variable, it works. O well.HostSystemIdentificationInfo=HASH(0xaf5bd70)->identifierValue
Update: your suggestion works, I missed the curly braces (blush), so I can skip one step (no need to assign anything).
Thanks! I have no points to give today, will give tomorrow
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: dereferencing ... again
by davido (Cardinal) on Nov 01, 2013 at 22:33 UTC |