#!user/bin/perl use warnings; use strict; my $plainTextIn = <; chomp $plainText; close $plainIn; open my $keyIn, "<", \$keyTextIn; my $key = to26(<$keyIn>, $testing); close $keyIn; my $cipherText = encrypt($key, $plainText, $testing); print ">>>>>>>>>>>>>\n" if $testing; my $decryptText = decrypt($key, $cipherText, $testing); print <= $i) || ($keylist[$i] lt $keylist[$permut[$j]])) { splice (@permut, $j, 0, $i); # Insert $i at position $j last; } $j++; } } return @permut; }