On OS X Snow Leopard, I'm running the default Apache with perlbrew.
My PATH points to the perlbrew perl, so I expected /usr/bin/env perl
to do the same, which it does from bash, but not via cgi scripts, which seem to use the system perl.
How can I have Apache use the perlbrew perl?
Update
This question is answered on StackOverflow: $PATH environment variable for apache2 on mac
Interesting that PHP people consider it a valid question, but Perl people do not. It would have been helpful for the Perl people to have taken a few seconds to mention why they think the question does not relate to programming and matters as described by the FAQ.