Thanks, but, didn't think i was a beginner... this is more of a mod_perl question 
because I'm aware of how to set @INC etc for normal perl scripts. Anyway I tried your 
advice, but, from perldoc perlvar:

$]
The use of this variable is deprecated

and for $^V: 
Use of uninitialized value at blah.pl line 7.

So are you forced to use the version of perl that was chosen when mod_perl was 
installed? Guess so, am trying to do a local non-root install of apache and mod_perl 
to see if this is so.

Thanks for the help,
jamie


>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: 29 August 2002 11:22
>To: Echlin, Jamie
>Cc: [EMAIL PROTECTED]
>Subject: Re: modifying @INC at startup and version of perl used
>
>
>Jamie,
>
>Use the perl internal variables to figure out what version 
>you're running under: $] and $^V
>Use these whether you're running perl or mod_perl. You might 
>want to direct questions relating to perl in general to the 
>perl beginners list.
>Please see perldoc perlvar for more details.
>
>~mark.
>
>On Thu, Aug 29, 2002 at 10:44:15AM +0100, [EMAIL PROTECTED] wrote:
>> Hi,
>> 
>> This is probably a luser error as I am quite new to this 
>malarkey, however I have been experimenting for a while 
>without progress now. I need to know how to find out exactly 
>which version of perl mod_perl is configured to use, and if 
>this can be changed as a non-root user, and how to set the @INC.
>> 
>> I have a simple startup script that prints @INC, which prints
>> @INC: /sbcimp/run/pd/perl/5.005_03/lib/sun4-solaris
>> /sbcimp/run/pd/perl/5.005_03/lib
>> /sbcimp/run/pd/perl/5.005_03/lib/site_perl/sun4-solaris
>> /sbcimp/run/pd/perl/5.005_03/lib/site_perl
>> 
>> this makes me think I am running 5.005_03? 
>> 
>> In the conf file I have 
>> PerlSetEnv PERL5LIB 
>/sbcimp/run/pd/perl/5.6.1/lib:/sbcimp/run/pd/cpan/5.6.1-2002.06/lib
>> but this does not seem to update the @INC. (I've also tried 
>combinations of PERLLIB and SetEnv etc).
>> 
>> When this is set however I get the following errors
>> Can't locate object method "boot" via package "mod_perl" at 
>/sbcimp/run/pd/perl/5.005_03/lib/site_perl/sun4-solaris/Apache/
>Constants.pm line 8.
>> and
>> [Thu Aug 29 10:41:12 2002] [error] syntax error at 
>/sbcimp/run/pd/perl/5.6.1/lib/warnings.pm line 306, near "{^"
>> syntax error at /sbcimp/run/pd/perl/5.6.1/lib/warnings.pm 
>line 311, near "{^"
>> 
>> etc, which is making me think I am mixing incompatible perl 
>binaries and modules. 
>> 
>> Does that seem reasonable, and if so what can I do to use perl 5.6.1?
>> 
>> Many thanks for your time.
>> jamie
>> 
>> 
>> Visit our website at http://www.ubswarburg.com
>> 
>> This message contains confidential information and is intended only 
>> for the individual named.  If you are not the named addressee you 
>> should not disseminate, distribute or copy this e-mail.  Please 
>> notify the sender immediately by e-mail if you have received this 
>> e-mail by mistake and delete this e-mail from your system.
>> 
>> E-mail transmission cannot be guaranteed to be secure or error-free 
>> as information could be intercepted, corrupted, lost, destroyed, 
>> arrive late or incomplete, or contain viruses.  The sender therefore 
>> does not accept liability for any errors or omissions in the 
>contents 
>> of this message which arise as a result of e-mail transmission.  If 
>> verification is required please request a hard-copy version.  This 
>> message is provided for informational purposes and should not be 
>> construed as a solicitation or offer to buy or sell any 
>securities or 
>> related financial instruments.
>

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

Reply via email to