Consider the following script "test.pl".
test.pl
#usr/bin/perl -w
push (@INC,"path_for_abc");
use abc;
#rest of the code ...
Command prompt:
$ perl -c test.pl
I know that I will have to add "use lib" pragma or have to push the path inside @INC in Begin block to make it work.
If the path for the module is not defined in defined in @INC, Will "perl -c test.pl" push the "path_for_abc" while snytax checking?
use lib
or wrap the push into aBEGIN
block. - Grrrrperl -c
is different fromperl
in this regard? - Borodin