use warnings; use strict; use Integer::Partition qw(); my $i = Integer::Partition->new(6); while (my $p = $i->next) { print join( ' ', @$p ), $/ if (@$p == 2) and ($p->[0] != $p->[1]); } __END__ 5 1 4 2
In reply to Re: How to restrict partitions
by toolic
in thread How to restrict partitions
by crunch_this!
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |