in reply to How to correctly import variables to a module ?
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.
|
|---|