On 12-06-03 06:00 PM, Octavian Rasnita wrote:
The cron jobs don't use the system Perl, but they use the first Perl
found in PATH.
If those cron jobs won't find any Perl in PATH, they won't run at all.
And you, or Perlbrew or somebody else should set a default PATH for the
shell which is used by t
From:
Subject: Re: Using perlbrew to change Perl version for scripts
On Jun 3, 2012, at 6:06 AM, Octavian Rasnita wrote:
but a user has only a single cron job so it is not such a big issue.
And therein lies the rub. Why can't perlbrew do that for us automatically?
perlbrew switc
On 12-06-03 04:17 PM, Bill Stephenson wrote:
I'm thinking that'd require something like a dispatcher that sits between your
scripts and the perls you want to use.
It does. That's why it only works from a terminal. The dispatcher is
place in your .profile. Scripts started outside a terminal us
I get what Marc is wanting, and I see the convenience of it.
Perlbrew allows you to install different versions of perl so you can test your
code with them. I'd be handy to be able to test a batch of scripts without
having to change the shebang line in each one.
I'm thinking that'd require som
On Jun 3, 2012, at 11:18 AM, Paul Johnson wrote:
> I'm sure gugod doesn't need a dozen people asking him the same thing.
If I'm the only one who wants this, then it won't be a priority for him
- and it shouldn't be. However if enough people want it, maybe he'll do it.
>> It does it for
On Sun, Jun 03, 2012 at 10:53:08AM -0700, sono...@fannullone.us wrote:
> On Jun 3, 2012, at 6:06 AM, Octavian Rasnita wrote:
>
> > but a user has only a single cron job so it is not such a big issue.
>
> And therein lies the rub. Why can't perlbrew do that for us
> automatically? perlbre
On Jun 3, 2012, at 6:06 AM, Octavian Rasnita wrote:
> but a user has only a single cron job so it is not such a big issue.
And therein lies the rub. Why can't perlbrew do that for us
automatically? perlbrew switch XXX... and you're done!
Your solution makes sense if you only c
From: "Shawn H Corey"
Subject: Re: Using perlbrew to change Perl version for scripts
On 12-06-03 03:01 AM, Octavian Rasnita wrote:
So for running cron jobs with a version of Perl installed by Perlbrew, I
just needed to add the following lines at the start of cron script:
PERL
On 12-06-03 03:01 AM, Octavian Rasnita wrote:
So for running cron jobs with a version of Perl installed by Perlbrew, I
just needed to add the following lines at the start of cron script:
PERL5LIB=/home/teddy/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2:/home/teddy/perl5/perlbrew/perls/p
From: "Chris Nehren"
Subject: Re: Using perlbrew to change Perl version for scripts
On Sat, Jun 02, 2012 at 12:57:22 -0400 , Shawn H Corey wrote:
On 12-06-02 12:23 PM, sono...@fannullone.us wrote:
> Is it possible to use a shebang line, like #!/usr/bin/env perl, so
> that
On 12-06-02 03:11 PM, Chris Nehren wrote:
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?
BBEdit would work too. Just use the "Find and Replace" feature and tell it what
directory to use. It will change that line in every file in there.
If the OP isn't using a Mac I'm sure there are other tools that do the same
thing (I'm also pretty sure they're using a Mac)
It's not the answer the
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
>
Okay, I get it... Sorry...
Kindest Regards,
Bill Stephenson
On Jun 2, 2012, at 2:01 PM, Shawn H Corey wrote:
>>> #!/usr/bin/env perl`
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Maybe I don't understand what you mean, but I'm using perlbrew on my Mac and
running CGI scripts with it.
Kindest Regards,
Bill Stephenson
On Jun 2, 2012, at 1:53 PM, Shawn H Corey wrote:
> On my machine, perl is at /usr/bin/perl so it doesn't get clobbered. (And `ln
> -s ...` won't clobber
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
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
--
To unsubscribe, e-mail: beginne
On 12-06-02 02:41 PM, Chris Nehren wrote:
And the disadvantage of clobbering whatever's in /usr/local/bin/perl,
defeating the point of perlbrew in the first place.
Don't do that.
Yes, the `#!/usr/bin/env perl` shebang should do. I've used it with
perlbrew myself.
On my machine, perl is at /us
Shawn,
> I don't know anything inside perlbrew that will help, but you could do this:
Apparently this is a know issue with perlbrew. I just found this page:
https://github.com/gugod/App-perlbrew/issues/70
> sudo ln -s /Users/marc/perl5/perlbrew/perls/perl-5.16.0/bin/perl
> /usr/local
On Sat, Jun 02, 2012 at 12:57:22 -0400 , Shawn H Corey wrote:
> On 12-06-02 12:23 PM, sono...@fannullone.us wrote:
> > Is it possible to use a shebang line, like #!/usr/bin/env perl, so
> > that scripts will use the currently selected version of Perl with
> > perlbrew? According to the
On 12-06-02 12:23 PM, sono...@fannullone.us wrote:
Is it possible to use a shebang line, like #!/usr/bin/env perl, so that
scripts will use the currently selected version of Perl with perlbrew?
According to the help, it appears that perlbrew only changes the version for
the CLI:
COM
Is it possible to use a shebang line, like #!/usr/bin/env perl, so that
scripts will use the currently selected version of Perl with perlbrew?
According to the help, it appears that perlbrew only changes the version for
the CLI:
COMMAND: SWITCH
Usage: perlbrew switch [ ]
Swi
22 matches
Mail list logo