Re: How to make @array2 use values of @array1?

2002-07-23 Thread David T-G
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

RE: How to make @array2 use values of @array1?

2002-07-23 Thread Bob Showalter
-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

Re: How to make @array2 use values of @array1?

2002-07-23 Thread chris
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

Re: How to make @array2 use values of @array1?

2002-07-23 Thread Michael Fowler
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

RE: How to make @array2 use values of @array1?

2002-07-22 Thread nkuipers
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