Help for this page

Select Code to Download


  1. or download this
    $self->content(sub{s/foo/bar/g});
    
  2. or download this
    sub content {
        my $self = shift;
    ...
        }
        $self->{'content'};
    }
    
  3. or download this
    $self->content =~ s/foo/bar/g;
    # instead of
    # $self->content(map { s/foo/bar/g } map $_, $self->content);