summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/NDBM_File/NDBM_File.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/NDBM_File/NDBM_File.pm b/ext/NDBM_File/NDBM_File.pm
index 601a3c2a0e..6072e651fc 100644
--- a/ext/NDBM_File/NDBM_File.pm
+++ b/ext/NDBM_File/NDBM_File.pm
@@ -1,6 +1,10 @@
package NDBM_File;
-use strict;
+BEGIN {
+ if ($] >= 5.002) {
+ use strict;
+ }
+}
use vars qw($VERSION @ISA);
require Tie::Hash;