a confined snap can not access the host libs, your inclusion of libparse-win32registry-perl in stage-packages makes sure Win32Registry.pm gets installed inside the snap, the PERL5LIB variable should list all include paths relative to the $SNAP directory, then all modules should be found. try to copy the whole PERL5LIB line from the snapcraft.yaml i linked above.