5 Replies Latest reply: Jan 23, 2013 2:48 AM by leegee23
leegee23 Level 1 Level 1 (0 points)

I have two perls - one from Apple, one from perlbrew.


In my account, asking `which perl` shows my `path` points to perlbrew.


When my default Apple Apache runs a Perl CGI script with the shebang on `/usr/bin/env perl`, I had hoped this would reflect my `path`, but it does not, it points to the Apple perl.


Why is this? How can I change the behaviour but retain the shebang line?


Apache runs as _www, but that is not a log-in account, so I do not know how to set its path - if ineedeed that is the problem.



MacBook Pro, Mac OS X (10.6.5)