And then I updated it because /usr/bin/perl doesn't always work (perl5, /opt/local, /usr/local, etc...). So I switched it to:
#!/usr/bin/env perl
Which should, work more often. But not necessarily so. See this and this.
Solution
When sentry is installed, find the path to perl (using ENV, following symlinks, etc..) and update the shebang line with the fully qualified path to perl.
Previous, the shebang line was hard coded:
And then I updated it because /usr/bin/perl doesn't always work (perl5, /opt/local, /usr/local, etc...). So I switched it to:
Which should, work more often. But not necessarily so. See this and this.
Solution
When sentry is installed, find the path to perl (using ENV, following symlinks, etc..) and update the shebang line with the fully qualified path to perl.