Jun 10, 2013, 11:54 AM
Just a very small stupid error on my part.
Re: [Alaskan5] Array question
Change the relevant line to:
print "$values[$row][$col] \n";
(No space between $value and the subscript)
and it should output:
$ perl get_row.pl
The basic idea is that, interpolated within a string, you should not leave an extra space between the name of the array and the subscript. If you leave a space, Perl does not know that is it supposed to interpolate "$values [$row][$col]" as an array of arrays. Without the space, it works.
(This post was edited by Laurent_R on Jun 10, 2013, 11:56 AM)