in reply to Is it possible to get the inverse of a square matrix to be input as a text file using STDIN?
In answer to the input question, (and modifying an earlier answer) why not get your input as
and then your script can get your input from any file or stdin....while (<>) do { push @m2, [ split /,/, $_ ]; }
./myprogram.pl < d1.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is it possible to get the inverse of a square matrix to be input as a text file using STDIN?
by supriyoch_2008 (Monk) on Nov 09, 2012 at 04:36 UTC |