Thanks for the tip. I tried it and it does work quite well. However, I have one problem with it. In my code I find out the current path by using the following command:
(my $path = $0) =~ s/\\
^\\+$//;
This works fine in the ordinary script but when Cava has made an executable of it the path is equal to "-e". Anyone who knows a way to get the path that is consistent also after Cava has done its work?
Thanks!