The file is a simple text file with each line like this:
92158CASan Diego
In the statement you wrote
while (my $mystuff = <ZC>) {
I have not used the syntax "my $mystuff = <ZC>"
I will have to do some reading to understand what it is doing.
Thanks again for your help.
I have a file of zip codes. When the form contains a good zip code, my program finds it along with the city and state. If the zip is bad and is not found in the file, my program does not finish. It hangs the sever. I have tried eof as well as some other programming, but nothing seems to work...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.