Here's my project:
assembler/ asm.pl # Main entry point instructions.pm support.pm build.sh ---- assembler/asm.pl ---- ... use instructions; ... ---- assembler/instructions.pm ---- ... use support; ... I wish for build.sh to contain a line like:
perl assembler/asm.pl $1 When asm.pl tries to use the related modules, it can't find them. This line works, but feels filthy and shameful:
cd assembler; perl asm.pl ../$1; cd .. What is the correct way to execute asm.pl? I wish to execute the program located anywhere on the file system directly from any other arbitrary location, e.g.
$ cd /some/dumb/path $ /path/to/the/project/build.sh /another/goofy/path.asm
-Ioption, e.g.perl -I assembler?