I prefer that the subroutine not muck with my arguments, unless I pass an explicit reference. The fiasco around
HTML::Entities's
encode_entities showed that this is bourne out in general. And in fact, we had a thread about that here a while back.
-- Randal L. Schwartz, Perl hacker