File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class Sheep {
65
65
66
66
test-both(Sheep, ' a sheep' , ' or is it?' );
67
67
68
- my $wool -attr = Sheep.^attributes.grep ({ .name eq ' $!wool' }).list [0];
68
+ my $wool -attr = Sheep.^attributes.grep ({ .name eq ' $!wool' })[0];
69
69
70
70
test-both($wool -attr, ' usually white' , ' not very dirty' );
71
71
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class Sheep {
75
75
method roar { ' roar!' }
76
76
}
77
77
78
- my $wool -attr = Sheep.^attributes.grep ({ .name eq ' $!wool' }).list [0];
78
+ my $wool -attr = Sheep.^attributes.grep ({ .name eq ' $!wool' })[0];
79
79
my $roar -method = Sheep.^lookup(' roar' );
80
80
81
81
test-leading(Sheep,' a sheep' );
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class Sheep {
69
69
}
70
70
71
71
{
72
- my $wool -attr = Sheep.^attributes.grep ({ .name eq ' $!wool' }).list [0];
72
+ my $wool -attr = Sheep.^attributes.grep ({ .name eq ' $!wool' })[0];
73
73
my $roar -method = Sheep.^lookup(' roar' );
74
74
test-trailing(Sheep, ' a sheep' );
75
75
test-trailing($wool -attr, ' usually white' );
You can’t perform that action at this time.
0 commit comments