Re: generate array of arrays from file

2004-03-16 Thread Wiggins d Anconia
> following the example in the perldsc (data structures cookbook), i wrote this > piece of code to create an array of arrays from a data file : > > > #!/usr/bin/perl -w > use strict ; > > my @AofA ; # array of arrays of file contents > open (fh1, " while () { > push @AofA, (split /\t/)

Re: generate array of arrays from file

2004-03-16 Thread James Edward Gray II
On Mar 16, 2004, at 10:13 AM, Joseph Paish wrote: following the example in the perldsc (data structures cookbook), i wrote this piece of code to create an array of arrays from a data file : #!/usr/bin/perl -w use strict ; my @AofA ; # array of arrays of file contents open (fh1, ") { push @Ao

generate array of arrays from file

2004-03-16 Thread Joseph Paish
following the example in the perldsc (data structures cookbook), i wrote this piece of code to create an array of arrays from a data file : #!/usr/bin/perl -w use strict ; my @AofA ; # array of arrays of file contents open (fh1, ") { push @AofA, (split /\t/) ; } close (fh1) ; print $Aof