I think you should use something else to control that loop.
Change the while (<ADDRESS>) { to while (1) { and add something like:
at the end of the loop.print 'Enter another address?'; my $answer = <>; last if $answer !~ /[yY]/;
In reply to Re: Why does this code quit?
by busunsl
in thread Why does this code quit?
by ellem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |