From: Perl 5 Porters <perl5-porters@africa.nicoh.com>
Date: Mon, 24 Jun 1996 03:07:54 +0000 (+0000)
Subject: perl 5.003: lib/Symbol.pm
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e051d6bdfed909406b94fc24753cffed9e3d988;p=p5sagit%2Fp5-mst-13.2.git

perl 5.003: lib/Symbol.pm

Do Perl version check at compile time, so that user gets a
clear error message instead of syntax errors during compilation
---

diff --git a/lib/Symbol.pm b/lib/Symbol.pm
index c266d64..67808af 100644
--- a/lib/Symbol.pm
+++ b/lib/Symbol.pm
@@ -46,7 +46,7 @@ which are qualified by their nature.
 
 =cut
 
-require 5.002;
+BEGIN { require 5.002; }
 
 require Exporter;
 @ISA = qw(Exporter);