Hasty Briefsbeta

Bilingual

Sort Your Perl Imports

21 days ago
  • New sorting functionality added to perlimports tool, aligning with import tidiers in other languages.
  • Example shows pragmas (e.g., feature, strict) hoisted to top; remaining imports sorted alphabetically; comments preserved with their imports.
  • Command-line options: --sort previews sorted output, -i rewrites file, --lint checks changes for CI (exits non-zero if unsorted).
  • Sorting can be enabled via config file (perlimports.toml) with 'sort = true'.
  • Author requests feedback on the sorting feature, asking for a hate scale from 1 to 10.