#!/usr/bin/perl # # Check that too-new features of Perl are not being used. # # Copyright 2012 Russ Allbery # # This program is free software; you may redistribute it and/or modify it # under the same terms as Perl itself. use strict; use warnings; use Test::More; # Currently, Perl 5.6 or newer is required. my $MINIMUM_VERSION = '5.006'; # Skip tests if Test::MinimumVersion is not installed. if (!eval { require Test::MinimumVersion }) { plan skip_all => 'Test::MinimumVersion required to test version limits'; } Test::MinimumVersion->import; # Check all files in the Perl distribution. all_minimum_version_ok($MINIMUM_VERSION);