There's more than one way to do things | |
PerlMonks |
RE: database query matchingby chromatic (Archbishop) |
on Apr 26, 2000 at 18:50 UTC ( [id://9243]=note: print w/replies, xml ) | Need Help?? |
It sounds like you just need one simple table, with four rows:
Resort, Price, Location, and Activities Your SQL statements will be very simple, too -- similar to (SELECT * from resorts WHERE price <= ? AND activities LIKE ? AND LOCATION LIKE ?). Don't quote me on the exact syntax. I second the recommendation to use DBD::CSV and DBI. Not only will it allow you to use SQL syntax on a simple database (you can even edit it in most spreadsheets), it will let you write your program to the standard Perl database interface (DBI). In the future, if you want to get more complicated or put a real database behind it, you can do that with very little effort. Plus, it will give you good experience.
In Section
Seekers of Perl Wisdom
|
|