Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
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 scripts will use the

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Shawn H Corey
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

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
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: PERL5LIB=/home/teddy

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread sono-io
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

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Paul Johnson
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

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread sono-io
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

Using Boulder.pm

2012-06-03 Thread Bill Stephenson
I have a bunch of files saved with CGI.pm's built-in "save" function. Here's an example of what's in a file: Name=Lincoln Stein Home=/u/bush202/lds32 Organization=Cold Spring Harbor Laboratory Login=lds32 Password_age=20 Password_expires=60 = I want to do some searches on the those files and Bou

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Bill Stephenson
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

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Shawn H Corey
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

mod_perl for n00bs

2012-06-03 Thread Mark Haney
What is the best book/tutorial/site/documentation out there to get someone up to speed on mod_perl? I've looked around including the apache site and I've put together bits and pieces, but I certainly don't think I'm getting the whole story. Best practices and so on. Money isn't an object, so

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
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 switch XXX... a

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Shawn H Corey
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

Re: mod_perl for n00bs

2012-06-03 Thread Chris Nehren
On Sun, Jun 03, 2012 at 17:35:05 -0400 , Mark Haney wrote: > What is the best book/tutorial/site/documentation out there to get > someone up to speed on mod_perl? I've looked around including the > apache site and I've put together bits and pieces, but I certainly > don't think I'm getting the who

Re: mod_perl for n00bs

2012-06-03 Thread pangj
There are some books listed there: http://perl.apache.org/docs/offsite/books.html#Books_mentioning_mod_perl Also you may want to join the modperl mailing list, that's an active list with many MP developers there. http://perl.apache.org/maillist/modperl.html Regards. What is the best book/tu

problem install XML::LibXSLT on RHEL

2012-06-03 Thread Perl Pra
Hi Gurus, I have written a program that uses XML::LibXSLT. When i Run the program it complain about not findind the XML/LibXSLT @INC. I have installed perl-libxml and perl-lib-xslt successfully .Still my perl progam complains about XML::LibXSLT not installed. 1) * when I run Perl MakeFile.PL t

Re: problem install XML::LibXSLT on RHEL

2012-06-03 Thread pangj
*2) Now I am trying to install libxslt when I run ./configure* It gives me the following error even though i have 2.6.28 lib avaiable on /usr/local/lib. checking for libxml libraries>= 2.6.27... configure: error: Version 2.6.26 found. You need at least libxml2 2.6.27 for this version of libxslt