Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Basic Database?

by jeroenes (Priest)
on Jun 11, 2001 at 17:56 UTC ( #87478=note: print w/replies, xml ) Need Help??

in reply to Basic Database?

I don't know of any ready-to-go solution. The *SQL way may be not so bad after all. The interfaces are nice, and the performance is a non-issue with modern systems. But if you insist, it's not difficult to implement. Just use a pipe (or any character that is garanteed to be not used in the fields) to make strings of the 2nd-level info.
use Some_DB_that_you_like; tie %db Some_DB_etc; my $two_level_hash = $what_ever_your_data; for my $key_one (keys %$two_level_hash){ my @vals = values %{ $two_level_hash->{$key_one} }; my $item = join '|', @vals; $db{ $key_one } = $item; } populate your DB; You can fetch items in a similar fashion with split;

Hope this helps,

"We are not alone"(FZ)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://87478]
[Discipulus]: yes, some semantic for the searxh must implemented before using such kind of query
[Corion]: Yeah - I have either to come up with a better search query or simply steal the template of some other file download site... I'm thinking of turning the JSON for Strawberry Perl releases into a small website that offers the files for download, with a ...
[Corion]: ... separate page per release, and potentially RSS for the versions

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-02-28 08:33 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (398 votes). Check out past polls.