Skip to content

Commit

Permalink
Can't use s///r in Perls before v5.14!
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Apr 11, 2024
1 parent af3f7bc commit ea92a60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.PL
Expand Up @@ -42,13 +42,14 @@ my $module = __PACKAGE__;

my $github = 'https://github.com/briandfoy/object-iterate';
my $main_file = catfile( 'lib', split /::/, "$module.pm" );
( my $pod_file = $main_file ) =~ s/\.pm\z/.pod/;

my %WriteMakefile = (
'MIN_PERL_VERSION' => '5.008',

'NAME' => $module,
'ABSTRACT_FROM' => $main_file =~ s/\.pm\z/.pod/r,
'VERSION_FROM' => $main_file,
'ABSTRACT_FROM' => $main_file,
'VERSION_FROM' => $pod_file,
'AUTHOR' => 'brian d foy <briandfoy@pobox.com>',
'LICENSE' => 'artistic_2',

Expand Down

0 comments on commit ea92a60

Please sign in to comment.