Subject: | Minimum Perl version |
The latest version of App::Uni requires 5.12 making this handy command
line tool difficult to install on a stock Perl distributed by a vendor.
I've gone through the code and the only 5.12 feature appears to be
declaring the version on the package line. It doesn't seem too odious
to use $VERSION for a little while longer.
The attached patch makes 5.10.0 the minimum version.
Subject: | 0001-Make-5.10.0-the-minimum-version.patch |
From f5c57b67b0c63cab40acec1a48fbf115280f6c3e Mon Sep 17 00:00:00 2001
From: Michael G. Schwern <schwern@pobox.com>
Date: Tue, 27 Apr 2010 22:38:37 -0700
Subject: [PATCH] Make 5.10.0 the minimum version
---
Makefile.PL | 2 +-
lib/App/Uni.pm | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index a2d2072..a546235 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,6 +1,6 @@
#!/usr/local/bin/perl
-use v5.12.0;
+use v5.10.0;
use inc::Module::Install;
name 'App-Uni';
diff --git a/lib/App/Uni.pm b/lib/App/Uni.pm
index 80c86e3..30395ce 100644
--- a/lib/App/Uni.pm
+++ b/lib/App/Uni.pm
@@ -1,5 +1,6 @@
-use v5.12.0;
-package App::Uni v0.12.0;
+use v5.10.0;
+package App::Uni;
+use version; our $VERSION = qv(0.12.0);
use open ':std' => ':utf8';
sub main {
--
1.7.0.3