2

Similar but different to this.

I am writing a perl script, foo.pl. I use Perl 5.10 on my machine to run foo.pl. I have to also make sure that foo.pl can be run by Perl 5.8.8. Is there a way to do so without just installing v5.8.8?

Community
  • 1
  • 1
Adam S
  • 8,945
  • 17
  • 67
  • 103
  • 4
    Perl is *very* easy to build and install; there's no check that will give you total confidence of compatibility. Just install 5.8.8. – Joe Jun 12 '13 at 15:25
  • 4
    Look into perlbrew. It will allow you to install multiple versions of perl and switch between them for testing. – gpojd Jun 12 '13 at 15:40
  • Related: http://stackoverflow.com/questions/11041136/perl-version-specific-syntax-resource http://stackoverflow.com/questions/2500892/how-can-i-test-when-a-feature-was-added-to-perl – daxim Jun 12 '13 at 16:14
  • Joe - Have you tried to actually find a linux binary for 5.8.8? I tried all morning and could not find it. – Adam S Jun 12 '13 at 20:36
  • He said "build". Since it's easy to build it should be easy to find a binary on your local machine after building one. As gpojd said: check out perlbrew. – innaM Jun 13 '13 at 08:13

1 Answers1

4

perlver, Perl::MinimumVersion::Fast

daxim
  • 39,270
  • 4
  • 65
  • 132