use
takes place at compile-time, so this would work:
BEGIN {push @INC, '..'}
use EPMS;
But the better solution is to use lib
, which is a nicer way of writing the above:
use lib '..';
use EPMS;
In case you are running from a different directory, though, the use of FindBin
is recommended:
use FindBin; # locate this script
use lib "$FindBin::RealBin/.."; # use the parent directory
use EPMS;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…