How can I pass/return a {Function, FileHandle, Array, Hash, Method, Regex}?

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.


Back to perlfaq7