in reply to add records to a matrix

If you take a look at the perlop page, you'll see that the qw operator does not interpolate variables.

Therefore, the best way would probably be to eliminate the qw, and change

push @X,[qw($sv $sr $sj)];
to
push @X,[$sv,$sr,$sj];

Hope that helped,
-v
"Perl. There is no substitute."

Replies are listed 'Best First'.
Re^2: add records to a matrix
by Anonymous Monk on Nov 29, 2004 at 14:00 UTC
    oops I shall RTFM more carefully in future