in reply to How to correctly import variables to a module ?

I think you have a few questions within the same node. First off, what are you trying to do? There are many ways to accomplish some of these commands in Perl. For instance, have a look at CfgTie::TieRCService for using chkconfig. There is also linux admin which is a Term:CLUI module example script which can be expanded upon based on your knowledge of Perl.

There are also many CPAN modules that do basic linux commands. Check out this node for some examples: Any perl modules for handling system operations

Also, when importing functions into a script, you will want to do something like the following:

use Benchmark qw( cmpthese );

Note the name of the function has no & which is generally used in front of a subroutine to show that it is a subroutine.