At 16.48 -0500 1999.02.04, Emmanuel. M. Decarie wrote: >Ok, just to be sure, I guess the second way is slower because myFunc is >reassigning the value to @global ? Yes. In the second case, the function returns a list, which is then assigned to an array variable. In the first case, you don't. Usually the impact would be minimal. One really good reason to always use references for passing around data structures is so that you don't make copies. I have a few large-scale applications with many megabytes of data that are sped up considerably because of this ability to pass references. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch