You've got a bug:
if (isa($set,"CODE")) { &set for $self->{'content'}; # Code to modify content }
That tries to call the subroutine set(). What you mean is:
if (isa($set,"CODE")) { $set->() for $self->{'content'} # execute the $set coderef }
In reply to Re^2: regex transforms of object attributes
by belden
in thread regex transforms of object attributes
by Tuppence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |