@servers=(
(0,5)
(1,6)
(2,7)
);
what I want to be able to do is call $servers[0][1] and have it return 5. But for whatever reason, $servers[1] returns 5, and $servers[0][1] returns nothing. Any idea how to fix this? Thanks!
@servers=(
[0,5],
[1,6],
[2,7]
);
anonymous arrays are created with square brackets, not parenthesis. You may want to read up on perl data structures:
[perldoc.perl.org...]
and maybe references:
[perldoc.perl.org...]