On Wednesday, April 17, 2002, at 07:33 , John W. Krahn wrote:

>>             sub MySub ($first, $second, @rest) { ... }
[..]
>>         sub MySub($$@) {
>>                 my( $first, $second, @rest ) = @_;
>>                 ...
>>         }
>
>
> They both do the same thing although the second version may be faster
> (You would have to benchmark to be sure.)
>


well traditionally I have "always" done them in the form

        sub MySub {
                 my( $first, $second, @rest ) = @_;
                 ...
         }

and had not thought about the more 'c' code style
form of having a 'signature' in any way - but thought
it might be a better idea of have the signature???

One friend when I dug out some of our old stuff mentioned
that this was an 'old way' of doing it - almost on the
order of being 'deprecated' - so I thought I would check.

I clearly think that cracking out the use Benchmark
may be the best 'answer' for this problem...

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to