Schwartzian transformation
#!/usr/bin/perl
use strict;
use warnings;
my @files = glob "*.xml";
my @quickly_sorted_files =
map { $_->[0] }
sort { $a->[1] <=> $b->[1] }
map { [$_, -s $_] }
@files;
print "@quickly_sorted_files\n";
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#!/usr/bin/perl
use strict;
use warnings;
my @files = glob "*.xml";
my @quickly_sorted_files =
map { $_->[0] }
sort { $a->[1] <=> $b->[1] }
map { [$_, -s $_] }
@files;
print "@quickly_sorted_files\n";