content here is a simple get_set from Class::MethodMaker. Anyone have ideas for a cleaner way? The whole creation of the seperate $content variable for no other reason then to pass it to the regex bothers me. Thanks!my $content = $self->content; $content =~ s/foo/bar/g; $self->content($content)
In reply to regex transforms of object attributes by Tuppence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |