develooper Front page | perl.beginners | Postings from March 2002

If statement

Thread Next
Ned Cunningham
March 29, 2002 08:47
If statement
Message ID:
I am having a very newbie problem.
I am reading an Access database with ODBC and have my data read into


My problem is now I need to match to 16 different states.

I have so far

If ( $Data{STATE} eq "MA" )

Process data

My question is should I use an array to test against and how to code it?

@state="MA CI DE IN OH";

Thank you for anyhelp

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About