¿Cómo adivinar la versión mínima de Perl, se escribe un script en particular?

StackOverflow https://stackoverflow.com/questions/9506150

  •  14-11-2019
  •  | 
  •  

Pregunta

Tengo un montón de guiones que escribí en momentos en que no me di cuenta de cómo se puede ser útil.Entonces, algunos de ellos pueden estar usando características de versiones posteriores de PERL, algunas de ellas pueden estar bien, digamos, PERL 5.8.

Ahora me gustaría conseguir eso en algún orden y agregar gentacodicetagodos adecuados donde hay necesidad para ellos, solo para poder dormir mejor.- -)

¿Cómo debo hacer eso?¿Hay alguna herramienta que pueda ayudarme a hacer una conjetura educada?

¿Fue útil?

Solución

Perl::MinimumVersion

Find a minimum required version of perl for Perl code

Otros consejos

The most reliable way is 1) to write a decent test suite, then 2) to run your tests using each version of Perl.

You've surely already done the first part (!), and the second part is actually pretty easy to do using perlbrew.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top