in reply to Get hangman words from text file
Another thing to check:
using warnings in your script, shows this Use of uninitialized value $input in numeric ne (!=) at ... line 75. Please check your subroutine getInput.
Secondly, in my considered opinion, I think it will be better if your subroutine are called without the & in cases like this. Why not just call like this:
Except you know for sure why you are doing otherwise. Please see perlsub for more...$input = getInput() # and your subroutine are defined as sub getInput{ ... } ...
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
In Section
Seekers of Perl Wisdom