in reply to Silly question about function args
Anyway, I will attempt to answer your question. You should look at the Benchmark module comes with your Perl distribution. I ran a few test cases, and found the shift method faster for very small arguments (ints, small strings, references), and the @_ method faster for passing larger objects (strings). Try it out yourself with whatever data is most common in your app.
blokhead
|
|---|