Using reference or throw valuables to sub ?

2004-09-08 Thread Bee
Say I have an array that carries at least 2mb data or 70mb max, but in my code, I want to throw this array to another sub ( within the same package )for further operations . so, which one I would better to use and what's the reason ? gosub [EMAIL PROTECTED] or gosub @array Is that if I

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Flemming Greve Skovengaard
Bee wrote: Say I have an array that carries at least 2mb data or 70mb max, but in my code, I want to throw this array to another sub ( within the same package )for further operations . so, which one I would better to use and what's the reason ? gosub [EMAIL PROTECTED] or gosub @array Is that

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Jenda Krynicky
From: Bee [EMAIL PROTECTED] Say I have an array that carries at least 2mb data or 70mb max, but in my code, I want to throw this array to another sub ( within the same package )for further operations . so, which one I would better to use and what's the reason ? gosub [EMAIL PROTECTED] or

RE: Using reference or throw valuables to sub ?

2004-09-08 Thread Thomas Bätzler
Bee [EMAIL PROTECTED] asked: Is that if I throw the array to another sub also means the array would be copied and then pass to the target sub ? while reference is using the same data in system memory? Yes. Use references, unless you need to munge the array in the sub you're calling. HTH,

Re: Using reference or throw valuables to sub ?

2004-09-08 Thread Bee
Thank you guys for clearing my concept, I know what to do now ! - Original Message - From: Jenda Krynicky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 8:45 PM Subject: Re: Using reference or throw valuables to sub ? From: Bee [EMAIL PROTECTED] Say I