in reply to regex transforms of object attributes
This is not specific to method calls. In perl, you sometimes need to create a variable to use s, y, chop or chomp.