in reply to Getting Specific List Elements Out of an Array Reference
$IpInfo->[0] is an array reference - a single scalar. You need to dereference it to get a list of its elements.
Note that array elements and hash values are always single scalars. That will save you confusion.my ( $id, $area, $cpu, $ip, $ip2 ) = @{$IpInfo->[0]};
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting non-Specific List Elements Out of an Array Reference
by Khatri (Scribe) on Oct 31, 2005 at 06:27 UTC | |
by Zaxo (Archbishop) on Oct 31, 2005 at 06:34 UTC |