A Matrix Worthy of Perl 6

The Problem

use strict;
use warnings;
use Math::MatrixReal;

my $x = 1;
my $m = Math::MatrixReal->new_from_rows([ [$x, 2*$x], [3*$x, 4*$x] ]);

for(; $x  4; ++$x)
	print "$m\n";

The output of this code is:

[  1.000000000000E+00  2.000000000000E+00 ]
[  3.000000000000E+00  4.000000000000E+00 ]

[  1.000000000000E+00  2.000000000000E+00 ]
[  3.000000…

A Challenger Approaches

Hello. I guess I'm a bit of a new-comer to the Perl community. I've been using Perl 5 for the past year and a half, and have been having a lot of fun with it. I started playing with Perl 6 the other day, and I can tell already that it's going to be even more fun!

Some things I've done with Perl:

About Ryan Fox

user-pic I'm a computer engineering student. I blog about my escapades while using Perl.