The variable $min in your main program has nothing to do with the variable $min in the subroutine sub min {...}. Also see Coping With Scoping.
In reply to Re^4: Passing an array to a subroutine help?!
by Corion
in thread Passing an array to a subroutine help?!
by Douglas0028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |