strawberry-perl

How to change @INC in Strawberry Perl?

旧城冷巷雨未停 提交于 2019-12-05 05:16:13
How can I change @INC permanently, without changing my scripts, in Strawberry Perl? I'm aware of -I , but don't want to invoke that switch every time. To prepend paths, set environment variable PERL5LIB to those paths. Note: This will affect all installations of Perl you run when this is effect. Howto: Right-click (My) Computer, Properties, Advanced, Environment Variables, (the top) New. You will probably have to restart already running consoles to get the change. Dibyajyoti Alternatively you can use : use lib /my/other/direcotry or push (@INC , /my/other/direcotry) to change the value of @INC

Why is it discouraged to use PPM perl modules with Strawberry perl on Windows?

混江龙づ霸主 提交于 2019-12-04 14:17:18
Can anyone shed light on why people would be making this comment? I've seen several threads on stackoverflow ( like this one ) where people say this. It seems to me that PPMs are nothing more than pre-compiled versions of modules that are just getting dropped into your perl installation. Assuming they have no external dependencies to a system DLL, what's the big risk? As far as I can tell PPM does dependency checking when you install a particular module and will install any others that it requires. Seems like the same thing as using .deb or .rpm files on a Linux distro. EDIT #1: I found this

Should I choose ActivePerl or Strawberry Perl for Windows? [duplicate]

强颜欢笑 提交于 2019-12-04 07:29:38
问题 This question already has answers here : Which version of Perl should I use on Windows? [closed] (11 answers) Closed 4 years ago . I'm totally new to Perl, but I'd like to try it out. I read about two rival distributions available for Windows platform (I guess there's just Perl on other OSes :). Wikipedia says that Strawberry Perl comes with additional development tools to compile CPAN modules if necessary. It sounds pretty good to me. It also says that ActivePerl has a lot of prepackaged

What is the proper way to access BerkeleyDB with Perl?

对着背影说爱祢 提交于 2019-12-04 05:35:34
I've been having some problems with using BerkeleyDB. I have multiple instances of the same code pointed to a single repository of DB files, and everything runs fine for 5-32 hours, then suddenly there is a deadlock. The command prompts stop right before executing a db_get or db_put or cursor creation call. So I'm simply asking for the proper way to handle these calls. Here's my general layout: This is how the environment and DBs are created: my $env = new BerkeleyDB::Env ( -Home => "$dbFolder\\" , -Flags => DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL) or die "cannot open environment: $BerkeleyDB:

Perl execution from command line question

你说的曾经没有我的故事 提交于 2019-12-01 06:47:52
I replaced ActivePerl with Strawberry Perl on my WinXP last week. I found I must run my Perl script with the command of perl myperl.pl ; otherwise I only need run myperl.pl before install Strawberry. How can I only run myperl.pl as before? I checked my environment configuration as below. C:\> Path C:\Program Files\ActiveState Komodo Edit 5\;C:\Perl\site\bin;C:\Perl\bin;C:\Perl\bin\;C:\Program Files\CodeSynthesis XSD 3.2\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:

Perl execution from command line question

情到浓时终转凉″ 提交于 2019-12-01 05:09:19
问题 I replaced ActivePerl with Strawberry Perl on my WinXP last week. I found I must run my Perl script with the command of perl myperl.pl ; otherwise I only need run myperl.pl before install Strawberry. How can I only run myperl.pl as before? I checked my environment configuration as below. C:\> Path C:\Program Files\ActiveState Komodo Edit 5\;C:\Perl\site\bin;C:\Perl\bin;C:\Perl\bin\;C:\Program Files\CodeSynthesis XSD 3.2\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:

How to Install DBD::Oracle in Strawberry Perl

喜你入骨 提交于 2019-11-30 12:49:18
I am trying to install DBD::Oracle using the CPAN shell in Strawberry Perl. I initially experienced an error because the Makefile could not locate an OCI library, so I installed the instant client from Oracle. I thought this would fix the problem, but now I get a large mixture of errors and warnings from Oracle.h , dbdimp.h , Oracle.c , Oracle.xsi , and Oracle.xs . Any suggestions for how I should proceed? Is it possible that there is a problem with existing Oracle software on my computer? I am fairly new to Perl, so any help is appreciated. Edit -- I'm including the entire output below: cpan>

How can I modify my cygwin environment to use Strawberry Perl instead of the packaged Perl distribution?

这一生的挚爱 提交于 2019-11-30 08:42:42
I currently use Strawberry Perl as my primary Perl distribution. However, I have some applications that make Perl calls through cygwin. These generally fail because they are calling the version of Perl that was packaged with cygwin, and only looking in cygwin's lib folders. How can I modify my cygwin environment to call Strawberry Perl (and use the C:/strawberry/perl/lib dirs) instead? If you remove Perl from cygwin using the setup program it will use Strawberry Perl by default. If you are unable to remove Perl from cygwin, you can create a symbolic link to the Perl executable from Strawberry.

How to Install DBD::Oracle in Strawberry Perl

蓝咒 提交于 2019-11-29 17:50:36
问题 I am trying to install DBD::Oracle using the CPAN shell in Strawberry Perl. I initially experienced an error because the Makefile could not locate an OCI library, so I installed the instant client from Oracle. I thought this would fix the problem, but now I get a large mixture of errors and warnings from Oracle.h , dbdimp.h , Oracle.c , Oracle.xsi , and Oracle.xs . Any suggestions for how I should proceed? Is it possible that there is a problem with existing Oracle software on my computer? I

How can I modify my cygwin environment to use Strawberry Perl instead of the packaged Perl distribution?

天涯浪子 提交于 2019-11-29 12:01:48
问题 I currently use Strawberry Perl as my primary Perl distribution. However, I have some applications that make Perl calls through cygwin. These generally fail because they are calling the version of Perl that was packaged with cygwin, and only looking in cygwin's lib folders. How can I modify my cygwin environment to call Strawberry Perl (and use the C:/strawberry/perl/lib dirs) instead? 回答1: If you remove Perl from cygwin using the setup program it will use Strawberry Perl by default. If you