]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2000-03-21 00:29:21 by gecko]
authorgecko <>
Tue, 21 Mar 2000 08:29:21 +0000 (00:29 -0800)
committergecko <>
Tue, 21 Mar 2000 08:29:21 +0000 (00:29 -0800)
Just what it says.. a holding place for stuff that is common, even amoung
modules.

Debbugs/Common.pm [new file with mode: 0644]

diff --git a/Debbugs/Common.pm b/Debbugs/Common.pm
new file mode 100644 (file)
index 0000000..243c324
--- /dev/null
@@ -0,0 +1,31 @@
+package Debbugs::Common; 
+
+use strict;
+
+BEGIN {
+       use Exporter   ();
+       use vars       qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
+
+       # set the version for version checking
+       $VERSION     = 1.00;
+
+       @ISA         = qw(Exporter);
+       @EXPORT      = qw( &fail );
+       %EXPORT_TAGS = (  );     # eg: TAG => [ qw!name1 name2! ],
+
+       # your exported package globals go here,
+       # as well as any optionally exported functions
+       @EXPORT_OK   = qw();
+}
+
+use vars      @EXPORT_OK;
+use Debbugs::Config qw(%Globals);
+
+sub fail
+{
+       print "$_[0]\n";
+       exit 1;
+}
+
+1;
+END { }       # module clean-up code here (global destructor)