Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

How can I let my CGI do a text search of an Excel spreadsheet?

by linex (Initiate)
on Apr 04, 2004 at 16:46 UTC ( [id://342484]=perlquestion: print w/replies, xml ) Need Help??

linex has asked for the wisdom of the Perl Monks concerning the following question:

I need create simple database solution to provide searching feature in website. Database source is an Excel file. Web server (hosting) provide only limited functionality:support Perl/cgi only, no MySQL, no other SSI supported. Is there some way?
  • Comment on How can I let my CGI do a text search of an Excel spreadsheet?

Replies are listed 'Best First'.
Re: How can I let my CGI do a text search of an Excel spreadsheet?
by arthas (Hermit) on Apr 04, 2004 at 17:17 UTC

    Hi!

    You can use the DBD::Excel module, which allows you to access to an Excel file via DBI. This will allow you to perform searches with no problems. The module is still in alpha, so I'm unsure how well it works. As an alternative there are several modules on CPAN which can be used to read an Excel file and/or convert into into another format.

    Michele.

Re: How can I let my CGI do a text search of an Excel spreadsheet?
by matija (Priest) on Apr 04, 2004 at 17:18 UTC
    Well you could use Bundle::DBD::CSV or DBD::Sprite emulate SQL queries over flat files. DBD::RAM is probably faster, because it does it in memory. The former are probably too slow if you have more than a few dozen records.

    DBD::Trini looks great, but is in early stages of it's implementation.

    Personaly, I would look at DBD::DBM || DBD::MLDBM as your best bet.

    I would also consider changing hosters. Cheap hosting that provides mysql is pretty easy to get.

    Update:(Thanks to dragonchild) DBD::Trini, not DBD::Trinni.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: How can I let my CGI do a text search of an Excel spreadsheet?
by diotalevi (Canon) on Apr 04, 2004 at 17:04 UTC

    Sure. Export your excel file to a text file.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found