For now we're only using flat files until we build a database. At this point I have no choice but to use flat files. That's why I'm doing it this way. | [reply] |
| [reply] |
Well, we don't have those modules installed, otherwise I'd be happy to use them :). So let me ask this, how do I create an array of dynamically named arrays?
I'll assume:
@array = @array1,@array2,@array3, etc. Each array in @array is dynamically named.
Here's the code I've got to get started. It's not much, but hey...we got to start somewhere with it.
open(FILE, "data.txt"); #opens data.txt in read-mode
while(<FILE>){ #reads line by line from FILE which i
+s the filehandle for data.txt
chomp;
# print join(':', split(/,/,$_));
# print "\n";
@data = split(/,/,$_);
}
close FILE; #close the file.
So, am I being lame or what?
| [reply] [d/l] |
Sure, but the problem is none of our servers have those modules installed, otherwise it'd be a great idea. :(
| [reply] |