On Wed, Aug 29, 2001 at 02:22:16PM -0500, Dean W. Paulson wrote:
>
> I have the following array:
>
> 1 2 3
> 4 5 6
> 7 8 9
That looks more like a matrix. What does your array really look like?
@array = (
'1 2 3',
'4 5 6',
'7 8 9',
);
OR
@array = (
[1 2 3],
[4 5 6],
[7 8 9],
);
(i.e. a list of lists).
> Is there a way to assign individual values of each array element (1 2 3
> 4 5 6 7 8 9) to seperate variables so that
> $var1 = 1
> $var2 = 2
> .
> .
> .
> $var9 = 9
Yes, there is, but I wouldn't suggest it. This type of sequential variable
naming is exactly what arrays are designed to accommodate. What's wrong
with accessing the array directly?
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]