in reply to regex transforms of object attributes
Depending on the purpose and scope of your program, I'd probably avoid "cheating" and messing around inside the object as Plankton suggests ($obj->{content} =~ s///). It's usually considered bad OO form, as it breaks encapsulation. Of course, in Perl you're always free to break any rules you want!
blokhead
|
|---|