- or download this
<<a>b</a>>c</<a>b</a>>
- or download this
my @nodes = (
...
}, 'Node' )
);
- or download this
package Node;
use Moose;
...
sub a { "super_$_[1]" } # prepend "super_"
sub b { "b_$_[1]" } # prepend "b_"
sub super_b { "B_$_[1]" } # prepend "B_"
- or download this
use overload
q{""} => 'as_text',
fallback => 1,
;
- or download this
sub as_text {
my ($self) = shift;
my $processing_method = $self->tag;
return $self->$processing_method( $self->data );
}