dev2000 has asked for the wisdom of the Perl Monks concerning the following question:
After reading the time, this neatly puts the remaining contents of the file into @datas which I can happily pass along to the user. New entries are just appended to the file with a new line character at the end:$timeold = <FILE>; @datas = <FILE>;
I do periodically remove the oldest lines (near the top) in an effort to keep the file from growing too large. So how could this type of array-like functionality be accomplished in my new design? Possibly with a SET? But this seems to have a maximum of 64 elements and there is no such limit the old way. I also thought of using one huge BLOB to store the data and then splitting it up after retrieval, but that would make for painful maintenance, I suppose. Or maybe I'm just overlooking something basic in database design (I'm new to this!).print FILE "$new_data\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: arrays in database
by dsheroh (Monsignor) on May 18, 2002 at 16:24 UTC | |
by dev2000 (Sexton) on May 18, 2002 at 16:55 UTC | |
by dsheroh (Monsignor) on May 18, 2002 at 17:44 UTC | |
by dev2000 (Sexton) on May 18, 2002 at 19:19 UTC | |
|
Re: arrays in database
by Angel (Friar) on May 18, 2002 at 16:03 UTC | |
|
Re: arrays in database
by perrin (Chancellor) on May 18, 2002 at 16:46 UTC | |
|
Re: arrays in database
by blackjudas (Pilgrim) on May 18, 2002 at 19:38 UTC | |
by JayBonci (Curate) on May 18, 2002 at 20:21 UTC |