in reply to Re: Re: Re: Re: "foreach" is to "next" as "map" is to ???
in thread "foreach" is to "next" as "map" is to ???
List flattening is the key. A little more directly:my @a=((),(),()); printf "%d\n", scalar @a;
printf "%d\n", scalar map {()} 1..3;
|
|---|