Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
output with errorprint Dumper ($self->result->{Abcd}); print "\n Platform ="; print Dumper ($self->result->{Abcd}->{Platfor +m}); print "\n abcdname ="; print Dumper ($self->result->{Abcd}->{AbcdNam +e});
$VAR1 = [ { 'Platform' => '12000', 'AbcdName' => 'slhrno1', 'DedicatedOption' => '-1', 'ShortName' => 'BRYN1', 'AFlag' => 'N', 'AbcdId' => '47358', 'Vendor' => 'MICROSOFT', 'Type' => '21', 'AliasName' => 'stlt', 'ExportVersion' => 'US' } ]; Platform =$VAR1 = undef; abcdname =Bad index while coercing array into hash at xxx.pm line 33
I dont see 'AbcdName' as array, also 'Platform' got value of 12000 but output shows undef....
any help?
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bad index while coercing array into hash
by kwaping (Priest) on Jun 08, 2007 at 22:58 UTC | |
by Anonymous Monk on Jun 11, 2007 at 00:03 UTC | |
by Anonymous Monk on Aug 25, 2014 at 12:45 UTC | |
by Anonymous Monk on Aug 25, 2014 at 20:25 UTC | |
|
Re: Bad index while coercing array into hash
by FunkyMonk (Bishop) on Jun 08, 2007 at 20:46 UTC |