in reply to Re:regex transforms of object attributes
in thread regex transforms of object attributes

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 }