On Sat, Jun 02, 2012 at 15:01:21 -0400 , Shawn H Corey wrote:
> On 12-06-02 02:54 PM, sono...@fannullone.us wrote:
> >Chris,
> >
> >>Yes, the `#!/usr/bin/env perl` shebang should do. I've used it with 
> >>perlbrew myself.
> >
> >     How are you getting that to work?  When I try it, it uses the
> >     version of Perl located at /usr/bin/perl, not the version that's
> >     selected with perlbrew.
> >
> >Marc
> 
> This only works from a terminal since your .profile is run when the
> terminal starts. From a CGI or cron(1) job, it runs the OS-installed
> version.

Surely you can put the relevant lines into your crontab or web server
config, or use a wrapper script that sources things? This is Not Hardâ„¢.

-- 
Chris Nehren           | Coder, Sysadmin, Masochist
Shadowcat Systems Ltd. | http://shadowcat.co.uk/

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to