Re: Accessing arrays of arrays

2003-02-19 Thread Lance
You have to place a REFERENCE to an array into another array: -- @jon = qw/ "jon" "hansfelt" "123-1122" /; @ben = qw/ "ben" "jones" "222-1231" /; @marsha = qw/ "marsha" "padgett" "333-9087" /; @abe = qw/ "abe" "johnson" "421-4623" /; @address = ( \@jon, \@ben, \@marsha, \@abe); -

RE: Accessing arrays of arrays

2003-02-19 Thread wiggins
On Tue, 18 Feb 2003 09:41:21 -0700 (MST), Rob Trahan <[EMAIL PROTECTED]> wrote: > Hello, > > I was wondering how I would could access arrays of arrays. I would like to > be able to get to (print, for now) the value in each nested array. Here > is

RE: Accessing arrays of arrays

2003-02-19 Thread Paul
--- Timothy Johnson <[EMAIL PROTECTED]> wrote: > For starters, you should get in the habit of adding 'use warnings' > and 'use strict' to the beginning of your scripts. Absolutely. Make them a mantra. Fix code until they are happily silent. THEN all you have to watch out for are the insidious lit

Re: Accessing arrays of arrays

2003-02-19 Thread John W . Krahn
Rob Trahan wrote: > > Hello, Hello, > I was wondering how I would could access arrays of arrays. I would like to > be able to get to (print, for now) the value in each nested array. Here > is what I've been trying: > > ~~~ > #!/usr/bin/perl > > @jon

RE: Accessing arrays of arrays

2003-02-19 Thread Timothy Johnson
]; #another way to access by dereferencing the array } Finally, you should check out 'perldoc perllol' (List of Lists) -Original Message- From: Rob Trahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 8:41 AM To: [EMAIL PROTECTED] Subject: Accessing arrays of

Accessing arrays of arrays

2003-02-18 Thread Rob Trahan
Hello, I was wondering how I would could access arrays of arrays. I would like to be able to get to (print, for now) the value in each nested array. Here is what I've been trying: ~~~ #!/usr/bin/perl @jon = qw/ "jon" "hansfelt" "123-1122" /; @ben = qw/