On Sat, 8 Sep 2001, Gustavo A. Baratto wrote:
> Thanks for the help. I wasn't initializing the $self->{ARRAY} with [].
> But later in the code I need to do something like this:
>
> @self->{ARRAY} = @another_array; # of course this is giving me an error.
You still need an array reference:
$self->{ARRAY} = \@another_array.
$self->{ARRAY}->[0] = 7;
@arr_slice = @{$self->{ARRAY}}[3..6];
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
A prisoner of war is a man who tries to kill you and fails, and then
asks you not to kill him.
-- Sir Winston Churchill, 1952
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]