Re: accessing array of arrays in a hash

2003-10-23 Thread Wiggins d Anconia
Disregard this first message my web based mail client was acting up, the other message is much more informative, sorry, http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: accessing array of arrays in a hash

2003-10-23 Thread Wiggins d Anconia
'View2-1', 'Title2-1' ], [ '#2-2', 'View2-2', 'Title2-2' ], ..., ], ..., ); This will build the structure you describe, where each hash key has a value that is an

Re: accessing array of arrays in a hash

2003-10-23 Thread Wiggins d Anconia
], > ); # data simplified and other keys removed... > As your questions below state the above "lists" are getting flattened into one array. You need to reuse [] to build anonymous array references like you did in the outer structure. So you end up with:

accessing array of arrays in a hash

2003-10-23 Thread Chad A Gard
ct Information', 'Contact Information'), ('#', 'View the Job Log', 'Job Log'), ('#', 'View the Client Assets', 'Client Assets'), ('#', 'View Press Releases', 'Press Releases')

Re: array of arrays :: part2

2002-07-05 Thread drieux
On Friday, July 5, 2002, at 08:31 , Connie Chan wrote: [..] > If you want to know what 'fields' inside %Data : > @DataKeys = keys(%Data); > print "@DataKeys"; # So you get "Code, Birth, Name"... > # However, the elements order in @DataKeys is not base > #on how's the order you create your key fie

Re: array of arrays :: part2

2002-07-05 Thread Connie Chan
ot;; # So you get "Code, Birth, Name"... # However, the elements order in @DataKeys is not base #on how's the order you create your key field in %Data. If you want to know how many elements inside @DataKeys : $total = $#DataKeys; print $total; rgds, Connie - Orig

array of arrays :: part2

2002-07-05 Thread Alex B.
Hi, I've read http://webmaster.indiana.edu/perl56/pod/perllol.html and this cleared some points. :) still I do have some problems... the assignment of values to arrays in arrays works, but I gave the arrays in the array names: @array = \(@names, @school, @othercrap); so $array[2][3] woul

RE: array of arrays

2002-07-05 Thread Nikola Janceski
PROTECTED]] > Sent: Friday, July 05, 2002 8:32 AM > To: [EMAIL PROTECTED] > Subject: array of arrays > > > Hi, > > I have a simple question: how do I access an array in an array? > > @array = (@array1, array2); ### unless this is wrong... > > > the

array of arrays

2002-07-05 Thread alex
Hi, I have a simple question: how do I access an array in an array? @array = (@array1, array2); ### unless this is wrong... the idea behind it is, that I have a long list, and want to put all 25 entries in a seperate array in that big array. later on I want to be able to read one speci