On Tue May 27 00:21:53 2003, asperl wrote: > > This is a feature request: > @list = ([1,2], [2,3]); # an array of arrays > > I would like to be able to write: > > foreach my @sublist (@list) { > .... > } > > This would be equivalent to: > > foreach (@list) { > my @sublist = @$_; > .... > } > > Same for hashes. > > This request is specifically for foreach - since foreach expects a scalar, > if it sees a list or a hash it knows to do something special. > > Need to decide what to do if an element in list is not actually a > ref, but rather a scalar. > Does anyone wish to comment on this feature request? Thank you very much. Jim KeenanThread Next