in reply to Why does this code quit?
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]/;
|
|---|