Rohit Mishra-R53658 wrote:

> Hi all,
> 
> Is there any way to open a "handle" to an array as we open a handle to a
> file??  The condition being we can use that "array handle" everywhere we
> can use a file handle....
> 

why would you want to do that? to save yourself not having to move the whole 
array around in function calls? if that's your case, make a reference to 
the array and use it everywhere:

#-- big array
my @array = (1..1000000);

#-- reference it
my $ref = \@array;

#-- now use it everywhere without copying the whole array
sub1($ref);
sub2($ref);

... etc

david

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

Reply via email to