Hi all,
I am trying to skip any line in my input file that doesn't have a city with a street
named 'MAIN'. I am matching record[3] in my input file with a $city (array) from a
hash (%state) that I got from another file. The problem is that @city contains more
than one element!
while ($line = <INPUT>){
....
$city = $record[3] ;
for ($i = 0; $i <= $#{ $state{$city}; $i ++ ) {
next if $state{$city}[$i] ne "MAIN"
}
...
}
@city is an array of streets can be = ['MAIN', 'MAIN1','BROADWAY','PARK'], I want to
match
Thanks for your help
I.S
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/