How control @INC in executing perl to use the files stored in any working directory ?

Dear all :
I am trying to execute one perl file which use a lot of files such as
use MatchEntry;
use .....;
use .....;

When I compiled it under the working directory which both files, this perl and, resides in, Perl compiler could find this file,
However, When I used the absolute directory path to invoke this perl under other working directory where MatchEntry is not existent, the following error message pops up,
Can't locate in @INC (@INC contains: xxxxxxx . ) at (perl) in line 35.
BEGIN failed -- compilation aborted at (perl) line 35.
( PS : xxxxxx represent a lot of directory paths, (perl) means the specific file name prefixed with the specific absolute directory path, for example, /abc/xyz/, is perl file name, /abc/xyz/ is the folder where reside in )

Could you please help solve the issue ?
Thank you

froce iT邦大師 1 級 ‧ 2020-04-17 07:22:50 檢舉