Skip to content

Instantly share code, notes, and snippets.

@masak
Created July 3, 2012 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masak/3040873 to your computer and use it in GitHub Desktop.
Save masak/3040873 to your computer and use it in GitHub Desktop.
I golfed moritz' bug
$ cat htmlify.pl
use A;
use fatal;
x;
$ cat A.pm
class A;
sub x is export {
my @opened;
my $last = @opened[*-1] // 0;
say "B";
}
$ export PERL6LIB=.
$ nom htmlify.pl
Cannot use negative index -1 on Array
in block <anon> at src/gen/CORE.setting:9555
in method postcircumfix:<[ ]> at src/gen/CORE.setting:1213
in method postcircumfix:<[ ]> at src/gen/CORE.setting:1243
in sub x at ./A.pm:5
in block <anon> at htmlify.pl:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment