summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm
diff options
context:
space:
mode:
authorafresh1 <afresh1@openbsd.org>2014-11-17 20:52:31 +0000
committerafresh1 <afresh1@openbsd.org>2014-11-17 20:52:31 +0000
commit6fb12b7054efc6b436584db6cef9c2f85c0d7e27 (patch)
treeaa09a524574ec7ae2f521a24573deeecb78ff66a /gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm
parentAdd the Cammelia cipher to libcrypto. (diff)
downloadwireguard-openbsd-6fb12b7054efc6b436584db6cef9c2f85c0d7e27.tar.xz
wireguard-openbsd-6fb12b7054efc6b436584db6cef9c2f85c0d7e27.zip
Import perl-5.20.1
Diffstat (limited to 'gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm')
-rw-r--r--gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm b/gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm
index b794c4a72ac..5834e248eab 100644
--- a/gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm
+++ b/gnu/usr.bin/perl/cpan/Module-Build/lib/inc/latest.pm
@@ -1,14 +1,16 @@
package inc::latest;
+
+use if $] >= 5.019, 'deprecate';
+
use strict;
use vars qw($VERSION);
-$VERSION = '0.4003';
+$VERSION = '0.4205';
$VERSION = eval $VERSION;
use Carp;
use File::Basename ();
use File::Spec ();
use File::Path ();
-use IO::File ();
use File::Copy ();
# track and return modules loaded by inc::latest
@@ -43,7 +45,7 @@ sub write {
# write inc/latest.pm
File::Path::mkpath( $where );
- my $fh = IO::File->new( File::Spec->catfile($where,'latest.pm'), "w" );
+ open my $fh, '>', File::Spec->catfile($where,'latest.pm');
print {$fh} "# This stub created by inc::latest $VERSION\n";
print {$fh} <<'HERE';
package inc::latest;