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

Re: [FWP] From "The Art of Perl", Ch. 1



> > 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

-- 
jeff pinyan    japhy@pobox.com
perl stuff     japhy+perl@pobox.com
CPAN ID: PINYAN            http://www.perl.com/CPAN/authors/id/P/PI/PINYAN


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe