diff --git a/WebminCore.pm b/WebminCore.pm index f00abda3b..c3a595485 100644 --- a/WebminCore.pm +++ b/WebminCore.pm @@ -12,13 +12,14 @@ Full function documentation is in web-lib-funcs.pl. =cut -use lib ("$ENV{'PERLLIB'}/vendor_perl"); - -$main::export_to_caller = 1; package WebminCore; +use lib ("$ENV{'PERLLIB'}/vendor_perl"); require Exporter; @ISA = qw(Exporter); +# Export global variables to caller +$main::export_to_caller = 1; + # Add functions in web-lib-funcs.pl # Generated with : # grep -h "^sub " web-lib-funcs.pl ui-lib.pl | sed -e 's/sub //' | xargs echo