in reply to How to restrict partitions
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to restrict partitions
by crunch_this! (Acolyte) on Jan 18, 2014 at 03:16 UTC | |
by toolic (Bishop) on Jan 18, 2014 at 03:29 UTC | |
by AnomalousMonk (Archbishop) on Jan 18, 2014 at 17:10 UTC | |
by crunch_this! (Acolyte) on Jan 19, 2014 at 03:11 UTC | |
by crunch_this! (Acolyte) on Jan 18, 2014 at 05:36 UTC | |
by choroba (Cardinal) on Jan 18, 2014 at 09:41 UTC |