There are at least two problems with your suggestion:
It doesn't address the original problem that runtime actions are too late to help with use statements in the same file.
Qualifying the directory relative to the current directory, as you do in ./home/avarus/perl/myPackages/ makes the function dependent on the current directory. The script must be run in the directory where
home/avarus/perl/myPackages lives for the modules to be found.
Anno