Perl 原本是種寬鬆資料型態(Perl is a loosely typed language)的程式語言, ..

Read more

Blocks 和 Pointy Blocks(即 { } 和 -> { })雖然也能傳入參數,但畢竟它不是副程 ..

Read more

Perl6 的 lambda: my &proc = -> $arg1, $arg2 { “pass in: ..

Read more

my ($, $, $real-care-about-it) = 1, 2, 3; say $real-car ..

Read more

Perl6 的複合指定運算子(compound assignment operators) 比 Perl5 多 ..

Read more

Perl6 的數列,語法非常有彈性,寫法如下: my @seq = 3, 9 … * > 30; # 數列 ..

Read more

Perl6 多了一個有趣的陣列宣告法,叫「無窮陣列」,用法如下: my @arry = 1..*; # 1,2 ..

Read more

由 Perl6 的 for 語法可以發現 pointy-block 的作法,但此法並不限於 for 才能使用, ..

Read more

Perl6 的迴圈語法有很大的改變,Perl5 的 for 變成 Perl6 的 loop,Perl5 的 f ..

Read more

傳統的 Perl 是沒有 switch 語法的,只能用 if/elsif/else、LABEL、或 switc ..

Read more