Print.pm - BEGIN block VERSION and vars related to export.
authorJoe Atzberger <joe.atzberger@liblime.com>
Mon, 7 Jan 2008 19:53:05 +0000 (13:53 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 8 Jan 2008 02:02:39 +0000 (20:02 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Print.pm

index 21fd8c2..ab08c90 100644 (file)
@@ -17,10 +17,7 @@ package C4::Print;
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-
 use strict;
-require Exporter;
-
 use C4::Context;
 use C4::Circulation;
 use C4::Members;
@@ -28,9 +25,13 @@ use C4::Dates qw(format_date);
 
 use vars qw($VERSION @ISA @EXPORT);
 
-# set the version for version checking
-# set the version for version checking
-$VERSION = 3.00;
+BEGIN {
+       # set the version for version checking
+       $VERSION = 3.01;
+       require Exporter;
+       @ISA    = qw(Exporter);
+       @EXPORT = qw(&remoteprint &printreserve &printslip);
+}
 
 =head1 NAME
 
@@ -48,11 +49,6 @@ The functions in this module handle sending text to a printer.
 
 =over 2
 
-=cut
-
-@ISA    = qw(Exporter);
-@EXPORT = qw(&remoteprint &printreserve &printslip);
-
 =item remoteprint
 
   &remoteprint($items, $borrower);