to be an indirect object reference.Filesys::DiskSpace::df $dir;
One solution is use 'use' instead of require. Another is use explicite parenthesis when calling Filesys::DiskSpace::df.
And if you use "use lib", you don't need the BEGIN block, and don't have to push on @INC yourself.
In reply to Re: import external package
by JavaFan
in thread import external package
by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |