Help for this page

Select Code to Download


  1. or download this
     <<a>b</a>>c</<a>b</a>>
    
  2. or download this
    
    my @nodes = (
    ...
      }, 'Node' )
    );
    
  3. 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_"
    
  4. or download this
    use overload
        q{""} => 'as_text',
        fallback => 1,
    ;
    
  5. or download this
    sub as_text {
        my ($self) = shift;
        my $processing_method = $self->tag;
        return $self->$processing_method( $self->data );
    }