Consider this test program:
use strict;
use Text::Autoformat;
my $str = <<'END';
1. Analyze problem
2. Design algorithm
6. Code solution
4. Test
2. Ship
END
my $x = autoformat $str, {
lists => 'number',
all => $ARGV[0] ? 1 : 0,
};
print $x;
It should always renumber the whole list, I think, but it must be told to use "all", meaning all paragraphs, to work. This means you can't effectively use it to format only the first paragraph, as the docs say. This is probably due to how paragraph boundary detection and numbered lists interface. (It clearly has to have some interaction to prevent from folding the above into one big line.)