Search notes:

Perl module Text::Aligner

#!/usr/bin/perl
use warnings;
use strict;

use Text::Aligner 'align';

use File::Slurp;

my @program_lines = read_file(__FILE__);

my @aligned_program = align('right', @program_lines);

print for @aligned_program;
Github repository PerlModules, path: /Text/Aligner/script.pl
This script's output is
                                      #!/usr/bin/perl
                                        use warnings;
                                          use strict;
                                                     
                           use Text::Aligner 'align';
                                                     
                                     use File::Slurp;
                                                     
             my @program_lines = read_file(__FILE__);
                                                     
my @aligned_program = align('right', @program_lines);
                                                     
                          print for @aligned_program;

See also

Formatting text with Perl modules
Perl modules

Index