Re: 2D array of real numbers



jeanluc <jeanluc_picard_66@xxxxxxxxxxx> writes:

I want to use the variables

$no_rows = 50;
$no_columns = 63;

To define a 50x63 2D arbitrary array filled with 0.0.

Anybody know how to do this

The x operator would be usefull for this.

perl -MData::Dumper -le '$a = [ (0.0) x 10 ]; print Dumper $a'

//Makholm


.