Fixed a few warnings.
[koha.git] / C4 / Scan.pm
1 package C4::Scan; #asummes C4/Scan.pm
2
3 use strict;
4 require Exporter;
5
6 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
7
8 # set the version for version checking
9 $VERSION = 0.01;
10
11 @ISA = qw(Exporter);
12 @EXPORT = qw(&getbarcode);
13 %EXPORT_TAGS = ( );     # eg: TAG => [ qw!name1 name2! ],
14
15 # your exported package globals go here,
16 # as well as any optionally exported functions
17
18 @EXPORT_OK   = qw($Var1 %Hashit);
19
20
21 # non-exported package globals go here
22 use vars qw(@more $stuff);
23
24 # initalize package globals, first exported ones
25
26 my $Var1   = '';
27 my %Hashit = ();
28
29
30 # then the others (which are still accessible as $Some::Module::stuff)
31 my $stuff  = '';
32 my @more   = ();
33
34 # all file-scoped lexicals must be created before
35 # the functions below that use them.
36
37 # file-private lexicals go here
38 my $priv_var    = '';
39 my %secret_hash = ();
40
41 # here's a file-private function as a closure,
42 # callable as &$priv_func;  it cannot be prototyped.
43 my $priv_func = sub {
44   # stuff goes here.
45   };
46   
47 # make all your functions, whether exported or not;
48
49 sub Getbarcode {
50 }
51
52 END { }       # module clean-up code here (global destructor)
53   
54