#!/usr/bin/perl
use strict; use warnings; use List::Permutor; my $OutFile = '>permutations.txt'; open(OUTFILE, $OutFile) or die "The file $OutFile could not be found.\n"; my $word = 'aabc'; my $perm = new List::Permutor split(//,$word); while (my @set = $perm->next) { #print @set for(my $i=0; $i