Chris --
...and then chris said...
%
% I have two variables (@array1 and @array2). @array1 will be
% initialized with a list of values. Is it possible to declare @array2
% in such a way that it will reference @array1?
Do you want @array2 to be a *copy* of @array1 when this is all done, or
-Original Message-
From: nkuipers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:13 AM
To: [EMAIL PROTECTED]
Subject: RE: How to make @array2 use values of @array1?
What I am about to raise, I do so more out of wanting someone
to educate me
than disagreeing
What I am after:
changes to one forces changes to other but could not make work
What I ended up with that works:
@{$this-{pkg_variable2}} = @{$this-{pkg_variable1}}
Sample listing of my problem follows.
use PkgA;
$pkga = PkgA;
my $this = new $pkga;
print @{$this-{pkg_variable1}}; # this prints
On Mon, Jul 22, 2002 at 11:13:23PM -0700, nkuipers wrote:
What I am about to raise, I do so more out of wanting someone to educate me
than disagreeing for the sake of. The *that syntax shown below is unfamiliar
to me outside the context of referencing a filehandle in a subroutine params
I have two variables (@array1 and @array2). @array1 will be
initialized with a list of values. Is it possible to declare @array2
in such a way that it will reference @array1?
I am trying to avoid looping through the elements and copying over.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
What I am about to raise, I do so more out of wanting someone to educate me
than disagreeing for the sake of. The *that syntax shown below is unfamiliar
to me outside the context of referencing a filehandle in a subroutine params
list, where it is optional (ie., some_sub(*STDIN)). *that