qball has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Oh boy! A (mildly) complex data structure when there's no DB around
by OeufMayo (Curate) on Mar 27, 2001 at 04:51 UTC | |
Allright, let's put it straight, I don't like to write other's code as I don't like others to write the code I'm in charge with. But, having said that, and having talk with qball in the CB, his problem was more interresting than it first sounded as he couldn't use a proper database to do the job (which obviously, would have been the best solution) So, after having toyed with the idea of using DBD::RAM, it seemed that this very cool module wasn't able to fill the task (which I doubt, but I haven't tried to do it with it...) So, here's my code:
I guess there's a cleaner implementation of this. Mmmh, well I'll get back to DBD::RAM, I'm pretty sure it could do the job just fine... Cheers, my $OeufMayo = new PerlMonger::Paris({http => 'paris.mongueurs.net'});</kbd> | [reply] [d/l] |
by qball (Beadle) on Mar 27, 2001 at 09:31 UTC | |
Not seen: UUUU IWEJ Names total count: booya: 3 letterheadboy: 2 Shouldn't "letterheadboy" have 4 results? Again, many thanks. | [reply] |
|
Re: oh boy!
by jeroenes (Priest) on Mar 27, 2001 at 17:45 UTC | |
supersplit_open(',',"file1.csv"); would give you all your data in a 2D-array. Saves a few keystrokes. Jeroen | [reply] [d/l] |
|
Re: oh boy!
by arturo (Vicar) on Mar 27, 2001 at 05:03 UTC | |
I see where there's a DBD::CSV available on CPAN ... Philosophy can be made out of anything. Or less -- Jerry A. Fodor | [reply] |
|
Re: oh boy!
by ok (Beadle) on Mar 27, 2001 at 02:37 UTC | |
Is that what the professor said? | [reply] |
by qball (Beadle) on Mar 27, 2001 at 02:44 UTC | |
Here it is. Thanks for beating me up :) .. | [reply] [d/l] |