Home: Perl Programming Help: Beginner:
How to set class path for perl if we have both Active and strawberry perl



Pardhu316
New User

Nov 1, 2013, 9:25 AM


Views: 1819
How to set class path for perl if we have both Active and strawberry perl

I have two windows perl vesions installed in my system.
1)Active perl
2)strawberry perl
my class path was set to strawberry perl
But i want to use Active perl since it have DBD:Oracle in it
i tried to set path for Active perl. But its searching for DBD:Oracle in strawberry perl only.
can some one suggest me how make my perl to search in Active perl
PS: i did not remove classpath of strawberry perl.


FishMonger
Veteran / Moderator

Nov 1, 2013, 10:19 AM


Views: 1817
Re: [Pardhu316] How to set class path for perl if we have both Active and strawberry perl

Are you saying that you're executing the Strawberry perl binary and want to use modules installed under the Activestate perl binary?


FishMonger
Veteran / Moderator

Nov 1, 2013, 10:28 AM


Views: 1816
Re: [Pardhu316] How to set class path for perl if we have both Active and strawberry perl

Why don't you install DBD:Oracle under Strawberry as well?

Loading pure perl modules is fine, but modules requiring XS code can/will be problematic.

You could start by adding a 'use lib' statement to add the path(s) to @INC, then load the module(s) from the Activestate libs.


Pardhu316
New User

Nov 1, 2013, 3:32 PM


Views: 1809
Re: [FishMonger] How to set class path for perl if we have both Active and strawberry perl

"You could start by adding a 'use lib' statement to add the path(s) to @INC, then load the module(s) from the Activestate libs".

Can u plz elaborate a little more the above statement.... For clarity I will post the code I am using


FishMonger
Veteran / Moderator

Nov 1, 2013, 5:51 PM


Views: 1801
Re: [Pardhu316] How to set class path for perl if we have both Active and strawberry perl

Please post your code and the full system path to the DBD::Oracle module that you want to use.