Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Search CSV for multiple parameters

by tradez (Pilgrim)
on Feb 13, 2002 at 22:24 UTC ( [id://145301]=note: print w/replies, xml ) Need Help??


in reply to Search CSV for multiple parameters

At the end you say you are not opposed to using DBI. If you have a database, and the ability to use DBI, why the hell would you want to create a search engine from a CSV? That is ludacris, write a parse and a simple table structure and fill it in. Then setup a simple search engine script from the DB. Easiest and most efficient answer I can think of.

Tradez
"Never underestimate the predicability of stupidity"
- Bullet Tooth Tony, Snatch (2001)

Replies are listed 'Best First'.
Re: Re: Search CSV for multiple parameters
by Indomitus (Scribe) on Feb 13, 2002 at 22:36 UTC
    The reason I'm using a CSV file is that's what I'm given by my vendor. I'd love to not have to deal with a CSV file and just use a database but as this is only for reading, not writing to, it seemed like overkill to get the new file, read the file in, parse it, write it to a database, then have to deal with DBI overhead just to read some phone numbers out of the file and display them on a webpage.
      But you can read from the vendor-delivered file *without* any changes through DBI with DBD::CSV.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-10-12 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.