Someone
public text v1 · immutablesub all{
my $self = shift;
my $method = shift;
foreach my $t ( values %{$_attributes{triangles}}) {
$method->($t);
}
}
#then call with
$g->all(\&Triangle::flatten);sub all{
my $self = shift;
my $method = shift;
foreach my $t ( values %{$_attributes{triangles}}) {
$method->($t);
}
}
#then call with
$g->all(\&Triangle::flatten);