VERSION_FROM => 'lib/Mafia.pm',
ABSTRACT_FROM => 'lib/Mafia.pm',
AUTHOR => 'Marius Gavrilescu <marius@ieval.ro>',
- MIN_PERL_VERSION => '5.14.0',
+ MIN_PERL_VERSION => '5.10.1',
LICENSE => 'perl',
SIGN => 1,
META_MERGE => {
#!/usr/bin/perl
-use 5.014000;
+use 5.010001;
+use strict;
use warnings;
use IO::Handle;
-use Mafia;
my @examples;
-BEGIN { @examples = map { s/\.pl//r } glob 't/examples/*.pl' };
-use Test::More tests => scalar @examples;
+BEGIN { @examples = glob 't/examples/*.pl' };
+use Test::More tests => 1 + @examples;
+BEGIN { use_ok('Mafia') }
for my $example (@examples) {
my $out;
open STDOUT, '>', \$out;
clean;
+ do $example;
+ $example =~ s/\.pl$//;
my $ok = join '', IO::File->new("$example.out", '<')->getlines;
- do "$example.pl";
is $out, $ok, substr $example, length 't/examples/'
}