Struggling with packaging a very simple Perl script

@ogra Ok, I finally understood.

I had to use it:

 PERL5LIB:  "$SNAP/rr/usr/share/perl5/"

Because this is where I move what is download from the git, but it also moves everything else (/etc, /usr).

But, now, I have more questions, because I really don’t understand the logic:

  1. Why does it move other folders? It’s like a chroot, when my intent was to just move the git repo.

  2. Isn’t there a better way to dowload the git repo for my case (no perl plugin)?