Or, alternatively:
#!/usr/bin/perl BEGIN { push( @INC, "/data/script" ); }
Either one works, but the first is probably preferred.
In reply to Re^2: How to execute/call perl module on different path ?
by thomas895
in thread How to execute/call perl module on different path ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |