Dne Pá 07.dub.2017 07:54:08, ppisar napsal(a):
Show quoted text> Test-Dir-1.15 changed $Test::Dir::VERSION declaration from "our" to
> "my" and that causes the variable being unavailable from code the
> imports it:
>
A fix is attached.
From ab9ccb5a7669ee4da016626c8b7854db5c5b8095 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Fri, 7 Apr 2017 13:55:20 +0200
Subject: [PATCH] Fix $Test::Dir::VERSION declaration
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
"my" variables are not visible from importing code:
$ perl -Ilib -e 'use Test::Dir 1.006;'
Test::Dir does not define $Test::Dir::VERSION--version check failed at -e line 1.
This patch fixes it.
CPAN RT#121007
Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com>
---
lib/Test/Dir.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Test/Dir.pm b/lib/Test/Dir.pm
index 3970840..e7cc8cd 100644
--- a/lib/Test/Dir.pm
+++ b/lib/Test/Dir.pm
@@ -4,7 +4,7 @@ package Test::Dir;
use strict;
use warnings;
-my
+our
$VERSION = 1.15;
use base qw( Exporter Test::Dir::Base );
--
2.7.4