Subject: | Transpose empty list |
The empty array () is a valid two-dimensional array but transposing it gives an error:
my @a = ();
my @b = transpose \@a;
Can't use an undefined value as an ARRAY reference at /usr/local/share/perl5/Array/Transpose.pm line 84.
The transpose of () is () and that should be returned.