use ExtUtils::MakeMaker;
-use 5.014000;
+use strict;
+use warnings;
+
+my $has_br = $ExtUtils::MakeMaker::VERSION >= 6.5503;
WriteMakefile(
NAME => 'WWW::Offliberty',
ABSTRACT_FROM => 'lib/WWW/Offliberty.pm',
AUTHOR => 'Marius Gavrilescu <marius@ieval.ro>',
EXE_FILES => ['off'],
- MIN_PERL_VERSION => '5.14.0',
+ MIN_PERL_VERSION => '5.8.9',
LICENSE => 'perl',
- BUILD_REQUIRES => {
+ (BUILD_REQUIRES => {
qw/Test::RequiresInternet 0/,
- },
+ }) x $has_br,
SIGN => 1,
PREREQ_PM => {
qw/HTML::TreeBuilder 0
HTTP::Tiny 0/,
+ ('Test::RequiresInternet' => 0) x !$has_br
},
META_ADD => {
dynamic_config => 0,
-#!/usr/bin/perl -w
-use v5.14;
+#!/usr/bin/perl
+use 5.008009;
+use strict;
+use warnings;
use Getopt::Long qw/GetOptions/;
use WWW::Offliberty qw/off/;
-my %params;
-$, = "\n";
-GetOptions ('param=s' => \%params);
-say off shift, %params;
+GetOptions ('param=s' => \my %params);
+print "$_\n" for off shift, %params;
__END__