in reply to simple array question
You need to use () and not {} when you define the @compass array, like this:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my @compass = ( ["NW", "N", "NE"], ["W", "center", "E"], ["SW", "S", "SE"] ); print Dumper(\@compass);
|
|---|