Do you know where your variables are? | |
PerlMonks |
Return from a subroutine generates a negative valueby c (Hermit) |
on Aug 07, 2003 at 22:04 UTC ( [id://282048]=perlquestion: print w/replies, xml ) | Need Help?? |
c has asked for the wisdom of the Perl Monks concerning the following question:
I have the following subroutine:
I call this subroutine from within another for loop:
I've confirmed each of the variables are assigned correctly through various print statements in key places. What is unusual is that no matter how i order the keys of %rrd, only the first pass returns a valid value. The remaining passes over the other keys return '-1' as the value. Your input is very appreciated. -c
Back to
Seekers of Perl Wisdom
|
|