1 package C4::Scan; #asummes C4/Scan.pm
6 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
8 # set the version for version checking
12 @EXPORT = qw(&getbarcode);
13 %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
15 # your exported package globals go here,
16 # as well as any optionally exported functions
18 @EXPORT_OK = qw($Var1 %Hashit);
21 # non-exported package globals go here
22 use vars qw(@more $stuff);
24 # initalize package globals, first exported ones
30 # then the others (which are still accessible as $Some::Module::stuff)
34 # all file-scoped lexicals must be created before
35 # the functions below that use them.
37 # file-private lexicals go here
41 # here's a file-private function as a closure,
42 # callable as &$priv_func; it cannot be prototyped.
47 # make all your functions, whether exported or not;
52 END { } # module clean-up code here (global destructor)