Don't ask to ask, just ask | |
PerlMonks |
perl6 matrix arrayof arraysby teun-arno (Acolyte) |
on Mar 19, 2018 at 19:03 UTC ( [id://1211262]=CUFP: print w/replies, xml ) | Need Help?? |
Started with perl6 shortly.. perl5 has AoA ... wanted to know if something can be done in perl6...
So here is the code which works under windows10
The above creates the following result Array @arr = [1.1, 2.2, 3.3, 4.4, 5.5, 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000, 2000, 3000, 4000, 5000] 1.1 2.2 3.3 4.4 5.5 10.0 20.0 30.0 40.0 50.0 100.0 200.0 300.0 400.0 500.0 1000.0 2000.0 3000.0 4000.0 5000.0 ======= ======= ======= ======= ======= 1111.1 2222.2 3333.3 4444.4 5555.5 Please notice : All columns are totalled ( =sum in excel ) . Could not find any usefull examples in the perl6 documentation. So I learned it myself. Have fun with perl6
Back to
Cool Uses for Perl
|
|