The stupid question is the question not asked | |
PerlMonks |
Re: Array Woesby thelenm (Vicar) |
on Dec 12, 2002 at 17:55 UTC ( [id://219388]=note: print w/replies, xml ) | Need Help?? |
The main problem I see is that you never reset the value of $connected between calls to check. The scope of $connected should really be limited to the subroutine, not the whole program. Move the my $connected line inside the subroutine, and that may solve your problem.
-- Mike --
In Section
Seekers of Perl Wisdom
|
|