Hello #perl community, how do you actually do that? For example, if you want to use the really new Perl features (e.g. classes) in your libraries and want to publish them on CPAN. Do you then not use such features? Or can I publish code for different Perl versions? It would be cool if there was something like a Perl transpiler (similar to the JS/typescript world) where you can transpile modern Perl to low level Perl. e.g. when you install a package for a specific #perl version.
In some packages on #metacpan you can see what the minimum Perl version must be. Is this binding? Looks to me like most packages often support very low Perl versions. Understandable, if you want the package to work with very old
Perl versions, but surely this prevents new #perl features from spreading very slowly?
@leobm I prefer backward compatibility over new language features. If I or a dependency use new features I set the minimum Perl version in the cpanfile of my distributions.