Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: Re: Silly question about function argsby demerphq (Chancellor) |
on Feb 09, 2003 at 10:10 UTC ( [id://233876]=note: print w/replies, xml ) | Need Help?? |
The fastest way to pass arguments is not to copy them at all Exactly. Inline the function entirely. Thats much faster. and to access them inplace in @_ Persoanlly I would caution against this. An innocuous change of Would alter the original variable. Better to do away with the subroutine entirely. Then at least this effect is obvious and as I said you avoid the subroutine jump overhead.
--- demerphq
In Section
Seekers of Perl Wisdom
|
|