in reply to Re: Re: Re: comparing array values or?
in thread comparing array values or?
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.
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: comparing array values or?
by danger (Priest) on Mar 14, 2001 at 07:38 UTC | |
by Anonymous Monk on Mar 14, 2001 at 20:36 UTC | |
by chromatic (Archbishop) on Mar 19, 2001 at 03:48 UTC |