in reply to using my module.pm in different directory error

Add a BEGIN{} to your urs.pl which add paths of your pm files to @INC:
BEGIN { unshift @INC, './path/to/lib/dir1'; unshift @INC, '/full/path/to/lib/dir2'; }

Replies are listed 'Best First'.
Re^2: using my module.pm in different directory error
by t-rex (Scribe) on Aug 10, 2016 at 09:02 UTC
    path to lib which change as in lets say i launch script from /tmp/ something and next i launch it from /home/userx/run_auto.... so the path inside run_auto remains constant but where i launch the script from keeps changing...
      I am not sure to understand. Are you saying that your modules will not always be in the same place? Or the opposite?