in reply to How to first decompress a module and then load it locally

use lib "./XX.pm"

Needs to be:

use lib "."

But I encourage you to look at FindBin for that sort of thing, in addition to the other help you receive here.