We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30b2ecf + 49306fd commit 25b52b4Copy full SHA for 25b52b4
challenge-011/kian-meng-ang/perl5/ch-1.pl
@@ -0,0 +1,15 @@
1
+# vi:et:sw=4 ts=4 ft=perl
2
+#!/usr/bin/env perl
3
+
4
+use v5.10;
5
+use strict;
6
+use warnings;
7
+use utf8;
8
9
+say grep { $_ == ($_ * 9 / 5) + 32 } (-100 .. 100);
10
11
+1;
12
13
+__END__
14
+$ perl ch-1.pl
15
+-40
challenge-011/kian-meng-ang/perl5/ch-2.pl
@@ -0,0 +1,22 @@
+use Math::MatrixReal;
+my $n = shift;
+my $matrix = Math::MatrixReal->new_diag([(1) x $n]);
+$matrix->display_precision(0);
+say $matrix;
16
17
18
+$ perl ch-2.pl 4
19
+[ 1 0 0 0 ]
20
+[ 0 1 0 0 ]
21
+[ 0 0 1 0 ]
22
+[ 0 0 0 1 ]
0 commit comments