in reply to use lib "."

I have just recently discovered lib::relative and it seems to do exactly what you want. Or you can go with $FindBin as other reply suggests.

Replies are listed 'Best First'.
Re^2: use lib "."
by Bod (Parson) on Aug 14, 2023 at 19:23 UTC

    Thanks...lib::relative seems to be a useful module for some circumstances.

    In this instance I'm sticking with an absolute path for lib.