Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RE: database query matching

by chromatic (Archbishop)
on Apr 26, 2000 at 18:50 UTC ( [id://9243]=note: print w/replies, xml ) Need Help??


in reply to database query matching

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://9243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found