On Fri, Jun 17, 2011 at 3:36 PM, Chas. Owens <chas.ow...@gmail.com> wrote:
> On Fri, Jun 17, 2011 at 08:14, Marek Stepanek <marekstepa...@yahoo.co.uk> 
> wrote:
> snip
>> #!/usr/bin/perl
> snip
>> And yes, yes, perlbrew activated the right perl:
>>
>> perl -v
>>
>> This is perl 5, version 14, subversion 0 (v5.14.0) built for darwin-2level
> snip
>
> Take another look at the shebang line.  You are asking for the version
> of perl installed in /usr/bin.  This is the system version of perl
> (which is why you are getting 5.10).  Your scripts need to start with
> one of the following paths:
>
> #!/home/USERNAME/perl5/perlbrew/perls/perl-5.14.0/bin/perl

Or:

#!/home/USERNAME/perl5/perlbrew/perls/current/bin/perl

If you want your script to run with whatever Perl perlbrew has
currently selected.

sherm--

-- 
Cocoa programming in Perl:
http://camelbones.sourceforge.net

Reply via email to