Alright, but what is the reason for less time when you pass the ref? I always thought the perl optimizes by sending the ref even if you use a direct array.
Where can i find more detailed info? regards ~A On Sun, 7 Nov 2004, Charles K. Clarkson wrote: > Ajey Kulkarni <[EMAIL PROTECTED]> wrote: > > : Make sure you pass var first, followed by array. > : There is no need to complicate with the array > : ref IMHO. > > > Once you are used to working with references, > they no longer complicate argument passing. An > array reference is always a single scalar while > the underlying array may be any length. Passing > a reference can take significantly less time. > > HTH, > > Charles K. Clarkson > -- > Mobile Homes Specialist > 254 968-8328 > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
