Print each of the values before you do anything, and see which one doesn't have a value. Figure out why that variable doesn't have a value and you'll figure out how to get rid of that warning.
What is the $_[$_-1] supposed to do? Do you really mean to use a global variable, $_, like that?
In reply to Re: Uninitialized value warning in subrutine
by brian_d_foy
in thread Uninitialized value warning in subrutine
by Deib
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |