Last active
May 20, 2018 11:58
-
-
Save COMBORICO/dc9d458e524060763519d0a1e45fcfa1 to your computer and use it in GitHub Desktop.
Missing closing quote (Line 8) not caught, instead causes "=begin comment" to be ignored; also block can be not closed (line 9) and it won't be caught, either.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
days-HMS( 61 ); | |
sub days-HMS (Int $seconds ) | |
{ | |
my $minutes = $seconds div 60; | |
my $sec-left = $seconds mod 60; | |
say "$minutes $sec-left; | |
=begin comment | |
seconds ( 240_000 ); | |
sub seconds ( $raw ) | |
{ | |
say $raw; | |
} | |
=end comment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I expect the comment to be recognized and the missing closing-quote to be reported. The comment block should be invisible to code parsing (a separate pod slang should help).