On Wed, May 16, 2001 at 11:34:26AM -0700, Peter Scott wrote:
> At 12:32 AM 5/17/01 +0500, Tirthankar C.P wrote:
> >What is the simplest way to read in a matrix, say
>
> my @matrix;
> while (<>) {
> push @matrix, [ split ];
> }
Without wishing to turn this into FWP (too much), and noting the request
was for the simplest solution, may I submit the following as a simpler
method, maybe even the simplest.
my @matrix = map [split], <>;
Although I suppose it depends a bit on your idea of simplicity ....
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net