Jeff Pinyan <jeffp@crusoe.net> writes: > > > I'm looking for some idioms for dealing with arrays, hashes, and unnamed > > > lists. > > > > what exactly is an "unnamed list"? (or a named list, > > for that matter.) > > I meant lists that aren't arrays or hashes. That encompasses return > values from functions, for instance. > > (localtime)[3,4,5]; # list slice, not array slice > (qw( alpha beta charlie ))[$i]; # list element, not array Those are just lists. There are no named lists, only named hashes, arrays, and scalars. Lists by their very nature have no names; they're just a bunch of values on the stack when it comes down to it. Calling a list named or unnamed is a misnomer; the former is just wrong and the latter implies a dichotomy that doesn't exist. Chip -- Chip Turner chip@ZFx.com Programmer, ZFx, Inc. www.zfx.com PGP key available at wwwkeys.us.pgp.net ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe