以ä¸ã®perlã®ã³ã¼ããåããªãçç±ãæãã¦ä¸ããã FizzBuzzã®ã³ã¼ããªã®ã§ããã$iã11,26,41,56,71,86ã®æã«Buzzã¨åºåããã¦ãã¾ãã¾ãã ãªãã¨ãªãç´åã®ã«ã¼ãæã®$outã®å 容ãå¼ãç¶ããã¦ããæ°ããã¾ãããçç±ããããã¾ããã --- #!/usr/bin/perl use strict; use warnings; use Perl6::Say; foreach my $i (1..100) { my $out = "Fizz" if $i%3 == 0; $out .= "Buzz" if $i%5 == 0; say $out || $i; } --- ãªã$outã®å®£è¨ãå¥ã«ããã¨ãããæ£å¸¸ã«åä½ãã¦ãã¾ãã --- foreach my $i (1..100) { my $out; $out = "Fizz" if $i%3 == 0; $ou
{{#tags}}- {{label}}
{{/tags}}