awohld has asked for the wisdom of the Perl Monks concerning the following question:
So you can see I have one array in my array reference.$VAR1 = [ [ '20', '74', '6', '55', '56' ] ];
And I try to assign my list to some scalars like:$VAR1 = [ '20', '74', '6', '55', '56' ];
But when I:my ( $id, $area, $cpu, $ip, $ip2 ) = $IpInfo->[0];
All I get is "ARRAY(0xb0e69dc), , , ,"print "$id, $area, $cpu, $ip, $ip2";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Getting Specific List Elements Out of an Array Reference
by Zaxo (Archbishop) on Oct 31, 2005 at 05:55 UTC | |
by Khatri (Scribe) on Oct 31, 2005 at 06:27 UTC | |
by Zaxo (Archbishop) on Oct 31, 2005 at 06:34 UTC | |
Re: Getting Specific List Elements Out of an Array Reference
by pg (Canon) on Oct 31, 2005 at 05:54 UTC | |
Re: Getting Specific List Elements Out of an Array Reference
by Delusional (Beadle) on Oct 31, 2005 at 10:13 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |