in reply to how to use two dimensional array?
use strict; use warnings; my @array = ( [1,2], [7,5], [4,4], [2,2], [0,7], [3,4], [8,9], [3,6], [5,7], [7,2], ); foreach my $pair (@array) { my ($x, $y) = @$pair; print "$x $y \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to use two dimensional array?
by hbm (Hermit) on Jun 14, 2013 at 11:52 UTC | |
by BillKSmith (Monsignor) on Jun 14, 2013 at 13:02 UTC |