Le 06/04/2012 10:53, Thierry Vignaud a écrit :
On 6 April 2012 10:34, Guillaume Rousse<[email protected]> wrote:Anyway, allocating the list content in a single pass seems simpler to understand for me. I'd rather use something as:# create an exhaustive list including %parts content if existing # for given partition number, a default structure otherwise my @pt = map { $parts{$_} ? $parts{$_} : { part_number => $_ } } 1..$nb_primary;even simpler: $parts{$_} || { part_number => $_ }
caramba :)
