I'm very new to perl. I have a two dimensional array, say $tmp[0][0], etc. I want to pass just one dimension at a time to a subroutine. $tmp[0]... &my_subroutine($tmp????)
How is that done so that the subroutine can examine it as $tmp[0], $tmp[1], etc?
sub my_subroutine($) { my @tmp_arry = @_; print $tmp_arry[0]; ... }
Edited by Chady -- moved text outside code tags.
In reply to passing array by pglenski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |