in reply to Multidimensional Array

What's wrong with this?

Just that Perl often Does What You Mean, doesn't mean you can just go try syntaxes you already know from other languages. If you want to do something you haven't done in Perl before, you should read documentation, because code like this is very unlikely to work. I suggeset you read the following documents:

Good luck finding out how Perl works.

Your code doesn't work for several reasons.

Here's an example matrix in Perl:
@foo = ( [1, 2, 3], [4, 5, 6], [7, 8, 9] ); print $foo[2][1]; # prints 8

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.