With the exception of regexes, you need to pass references to these objects. See perlsub/"Pass by Reference" for this particular question, and perlref for information on references.
See ``Passing Regexes'', below, for information on passing regular expressions.