Use Exporter.
This commit is contained in:
1 parent
c50f7b14ec
commit
7572e999cf
1 file changed
+11
@@ -3,10 +3,15 @@
|
||||
# This program is free software; rights to this code are stated in doc/LICENSE.
|
||||
use strict;
|
||||
use warnings;
|
||||
use Exporter;
|
||||
|
||||
# Standard API subroutines.
|
||||
package API::Std;
|
||||
|
||||
our @ISA = qw(Exporter);
|
||||
our @EXPORT_OK = qw(conf_get trans);
|
||||
|
||||
|
||||
# Configuration value getter.
|
||||
sub conf_get
|
||||
{
|
||||
@@ -41,4 +46,10 @@ sub conf_get
|
||||
}
|
||||
}
|
||||
|
||||
# Translation subroutine.
|
||||
sub trans
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in new issue
Block a user