fix Exporter inclusion
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 2 Jun 2008 00:43:56 +0000 (00:43 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 2 Jun 2008 00:48:14 +0000 (00:48 +0000)
Revert recent change of including only import() from Exporter instead of
basing on it, as the latter fails on older Perls (smoke on versions
5.8.2 and below).  Broke PLP::Functions in these versions at
d9f3acb221a71e094318c7b5d3809aa81dbb5bb3 (use warnings in all modules).

Changes
lib/PLP/Functions.pm

diff --git a/Changes b/Changes
index 849a1c98d1c59d53a54777d9afb7c0ca28a8425c..4c0043dad9c72cdeb99e89621e695854cf9b9679 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+- Fix breakage with old versions of Exporter
+
 3.21 - May 31, 2008:
 - Fix everything() wrapper (broke pre-3.20 CGI scripts on 3.20)
 - %header values containing newlines will be sent as multiple fields
index c298dca0d37d821ece7f12d6370974f302678bcb..8c3886f795aa44ebf133ce5158a3eeae377d177b 100644 (file)
@@ -3,7 +3,7 @@ package PLP::Functions;
 use strict;
 use warnings;
 
-use Exporter qw(import);
+use base 'Exporter';
 use Fcntl qw(:flock);
 
 our $VERSION = '1.00';