Skip to content

Instantly share code, notes, and snippets.

@djanatyn
Created November 20, 2011 19:53
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 djanatyn/1380783 to your computer and use it in GitHub Desktop.
Save djanatyn/1380783 to your computer and use it in GitHub Desktop.
weird error with rakudo
my $fh = open('birthdays.ics', :r);
my @index;
my $items = 0;
for $fh.lines -> $line {
if $line ~~ m/^DTSTART\:(.+)/ {
push @index[$items], $0;
};
if $line ~~ m/^SUMMARY\:(.+)/ {
push @index[$items], $0;
print ".";
$items++;
};
};
# Method '!fill' not found for invocant of class ''
# in 'List::push' at line 2930:src/gen/core.pm
# in <anon> at line 8:test.pl
# in main program body at line 1:src/metamodel/RoleToInstanceApplier.nqp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment