I have written the following script that creates a string that is of length 3 or 4 units for all possible strings that contain the 26 letters of the alphabet. I’d like to add a 27th character. Call it ?, but it does not matter which one. I cannot think how I should do this. Any help would be much welcomed.
Here is the code that does the 26 letters:
#!/usr/bin/perl
use 5.10.0;
my $str = 'AAA';
while ( $str ne 'ZZZZ' ) {
say $str;
$str++;
}
How would I transform a number into base 27?
perldoc perlop:
Algorithm::Combinatorics to the rescue!