[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Re: Newlines (fwd)



At 15.47 10/17/97, Mark Manning/Muniz Eng. wrote:
>According to John Macdonald:
>> 
>> actually arrays.  It's not so necessary now that perl has support for
>> references and real multi-level arrays, but it is still useful for saving
>> things in a file and later reading it back in.
>
>REAL multi-level arrays?  Eh?  What page of the book is
>this on?  I'd like to read up on this!  This isn't the
>"fake out Perl" stuff is it?  :-?

It's real ... if you consider references real.  Technically, it is an array of arrays is an arry of references to an array.  But there isn't a significant enough difference to not call them "real" multidimensional arrays, IMO.

$LoL = { key1 => value,
         key2 => [v1, v2, v3],
         key3 => {k1=>v1,k2=>v2,k3=>v3}
};

see perldsc and perllol.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch