On Wed, Nov 30, 2005 at 12:34:58PM -0500, Andrew Medico wrote:
> The anwser is that there is no such thing as a list of lists in Perl -

Don't forget the footnotes:

my @lol = map { [ $_ ] } (0 .. 7);
my $lol = [map { [ $_ ] } (0 .. 7)];

The former is a list of list refs and the latter is a list ref of
list refs and is generally called a list of lists though it's
technically neither.

-Gyepi
 
_______________________________________________
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to