List::Tuples is a Perl module that makes tuples from lists.
SYNOPSIS
use List::Tuples qw(:all) ;
my @tuples = tuples[2] => (1 .. 6) ;
# is equivalent to:
my @tuples =
(
[1, 2],
[3, 4],
[5, 6],
) ;
#-------------------------------------------------------
my @meshed_list = ref_mesh([1 .. 3], ['a' .. 'b'], ['*']) ;
# is equivalent to:
my @meshed_list = (1, 'a', '*', 2, 'b', undef, 3, undef, undef) ;
#-------------------------------------------------------
my @hashes = hash_tuples ['key', 'other_key'] => (1 .. 5) ;
# is equivalent to :
my @hashes =
(
{key => 1, other_key => 2},
{key => 3, other_key => 4},
{key => 5, other_key => undef},
) ;
Requirements:
· Perl
Product's homepage