- or download this
my @array;
push @array, "one";
...
my @rest = combinations(@_);
return @rest, map { [$first, @$_] } @rest;
}
- or download this
$VAR1 = [
'',
...
'one|two|three',
'one|two|three|four'
];
- or download this
$VAR1 = [
'one|two|three|four'
...
'one',
''
];