in reply to Uninitialized value warning in subrutine

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?

--
brian d foy <bdfoy@cpan.org>