in reply to
Reaped: use of uninitialized value in array
Use
Basic debugging checklist
and Dumper() all the variable in play ( $_, $first,$second ) and you'll have your answer
Comment on
Re: use of uninitialized value in array
In Section
Seekers of Perl Wisdom