看板 Perl 關於我們 聯絡資訊
https://perlmaven.com/traversing-the-filesystem-using-a-queue use 5.010; my $path = shift || '.'; 想請問 1.為什麼要use 5.010; 若沒有會有什麼影響 2.shift || '.'的意思 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.255.12.55 ※ 文章網址: https://www.ptt.cc/bbs/Perl/M.1522542545.A.6D4.html
cutekid: shift || '.' 等價於 shift @ARGV || '.' 唷 ^_^ 04/01 13:25
flu: https://perldoc.perl.org/feature.html 最後一段 04/01 21:09
flu: https://perldoc.perl.org/functions/use.html "use VERSION" 04/01 21:10
flu: 部份 04/01 21:10