in reply to Running a module?
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; }
|
|---|