You can use the FindBin module to get the path to the executable you are currently running.
Try:-
Or, if that doesn't work for you:-BEGIN { use FindBin qw( $BIN ); use lib qw( $BIN ); }
might also work for you.#! /user/bin/perl -I . BEGIN { use FindBin qw( $BIN ); chdir $BIN; }
In reply to Re: Running a module?
by dtr
in thread Running a module?
by bschmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |