in reply to Re^2: How to make this code more flexible
in thread How to make this code more flexible
Why'd I print the first row, third column? I was just demonstrating. It worked for me when I tested it, so I don't know why it does not work for you. Note that I changed the return from a hash to an array.
The whole idea is that you specify the matrix size in the call to the sub.
So, you are just learning? Play with the code a bit to see what happens. That's one of the best ways to learn.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to make this code more flexible
by DanielM0412 (Acolyte) on Jul 25, 2011 at 14:07 UTC | |
by Sandy (Curate) on Jul 25, 2011 at 17:49 UTC | |
by DanielM0412 (Acolyte) on Jul 25, 2011 at 21:15 UTC | |
by Sandy (Curate) on Jul 28, 2011 at 18:04 UTC |
In Section
Seekers of Perl Wisdom