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

Re^2: A better way for walking through HoHoH ?

by ZlR (Chaplain)
on Mar 24, 2010 at 13:32 UTC ( #830562=note: print w/ replies, xml ) Need Help??


in reply to Re: A better way for walking through HoHoH ?
in thread A better way for walking through HoHoH ?

Actually i was wondering if i could do without using a hash ^^
I've been doing this hash trick for a long time now, but i could use a flat db file then do sql request to get what i want from it. It's a long shot tho given my below average sql skills !


Comment on Re^2: A better way for walking through HoHoH ?
Re^3: A better way for walking through HoHoH ?
by JavaFan (Canon) on Mar 24, 2010 at 15:37 UTC
    Actually i was wondering if i could do without using a hash
    Uhm, so, you have a hash of hashes of hashes, and your idea of a "better" way of walking through them is to not use hashes?

    Why? I guess you could use a serializer to turn your datastructure into a big string, and use regular expressions or index/substr to parse it, but I fail to see why you'd qualify that as "better".

Re^3: A better way for walking through HoHoH ?
by Marshall (Prior) on Mar 25, 2010 at 13:21 UTC
    If you ever want to play around with this approach, there is a flat DB that works with CSV files. You will need:
    DBI
    SQL::Statement
    Text::CSV_XS
    DBD::CSV

    This is fine for small, simple DB. Its of course slower than the "real thing" and doesn't have fancy features, but I've used it before with good results. Since the DB is a CSV file you can look at it in Excel or whatever. And since it uses standard SQL statements, you can migrate to a different DB later if needed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-09-15 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls