summaryrefslogtreecommitdiff
path: root/lib/VN3/Prelude.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VN3/Prelude.pm')
-rw-r--r--lib/VN3/Prelude.pm54
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/VN3/Prelude.pm b/lib/VN3/Prelude.pm
new file mode 100644
index 00000000..3e9465ef
--- /dev/null
+++ b/lib/VN3/Prelude.pm
@@ -0,0 +1,54 @@
+# Importing this module is equivalent to:
+#
+# use strict;
+# use warnings;
+# use v5.10;
+# use utf8;
+#
+# use TUWF ':Html5', 'mkclass';
+# use Exporter 'import';
+# use Time::HiRes 'time';
+#
+# use VNDBUtil;
+# use VN3::HTML;
+# use VN3::Auth;
+# use VN3::DB;
+# use VN3::Types;
+# use VN3::Validation;
+# use VN3::BBCode;
+#
+# WARNING: This should not be used from the above modules.
+package VN3::Prelude;
+
+use strict;
+use warnings;
+use utf8;
+use feature ':5.10';
+
+sub import {
+ my $c = caller;
+
+ strict->import;
+ warnings->import;
+ feature->import(':5.10');
+ utf8->import;
+
+ die $@ if !eval <<" EOM;";
+ package $c;
+
+ use TUWF ':Html5', 'mkclass';
+ use Exporter 'import';
+ use Time::HiRes 'time';
+
+ use VNDBUtil;
+ use VN3::HTML;
+ use VN3::Auth;
+ use VN3::DB;
+ use VN3::Types;
+ use VN3::Validation;
+ use VN3::BBCode;
+ 1;
+ EOM;
+}
+
+1;