activeperl

Can a Perl script detect whether it's running under Activestate vs Strawberry Perl?

你。 提交于 2019-12-13 14:15:28
问题 I have a Perl script I'm still trying to debug and in the process I've noticed that it behaves differently running under ActivePerl and Strawberry Perl. This has led me to wonder how a Perl script might detect under which of these flavours it is running. 回答1: ActivePerl on Windows always (or at least since Perl 5.005) defines the Win32::BuildNumber() function, so you can check for it at runtime: if (defined &Win32::BuildNumber) { say "This is ActivePerl"; } else { say "This is NOT ActivePerl"

Installing XML::DOM module fails

对着背影说爱祢 提交于 2019-12-11 20:19:11
问题 I couldn't find any solution for two weeks.!!!! I try to install CPAN Modules using the cpan.exe. When I try to install a module with "install XML::DOM" fails stating dmake.exe is NOT OK, here is my error: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\ehsan\Documents>cpan Set up gcc environment - gcc.exe (release with patches / build 20130526 by st berryperl.com) 4.7.3 There seems to be running another CPAN process (pid 5932).

Installing Padre (IDE) on ActivePerl?

孤人 提交于 2019-12-11 03:27:54
问题 When I go to Padre's official download site: http://padre.perlide.org/download.html, I see that the only option in Windows is to download DWIM Perl 5.14.2.1 (v7) which comes with Strawberry Perl . What if I just want to use Padre the IDE on my existing ActivePerl installation? 回答1: The box right below the one you read is titled "ActiveState Perl" gives the address of a repository that has the packages for ActivePerl's ppm system, at least for Perl 5.12 and earlier. ppm repo add http://www

Handling Perl IIS 7.5

丶灬走出姿态 提交于 2019-12-11 02:48:14
问题 I've got a project written in classic asp, and a particular form's submit is handled by a Perl script. I'm going to do an enhancement for this project. I installed the latest version of ActivePerl for Windows 32 bits. I looked at the production environment and saw that in the IIS 7.5, there is an entry on "Handler Mappings" for *.pl to be handled by C:\Perl\bin\PerlEx30.dll . So I did the same thing on development environment. (please note that there is no mapping for "*.cgi" on the Prod.

How do I install Perl's Parse::Lex for ActivePerl?

喜你入骨 提交于 2019-12-08 07:27:06
问题 Hi I am using ActivePerl 5.10.1 on Win XP. I can't find Lex package from the PPM list. Can I install other package to enable Parse::Lex? 回答1: I do believe ParseLex is in the base set of packages in PPM. Try: > ppm install ParseLex from the command line? You'll need to set the http_proxy environment variable if behind a proxy, you can do it for that session only by issuing this before the command above: > set http_proxy=http://host:port/ e.g. > set http_proxy=http://10.100.9.10:8080/ If using

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

Perl on Windows: Problems with Encoding

扶醉桌前 提交于 2019-12-03 17:32:21
I have a problem with my Perl scripts. In UNIX-like systems it prints out all Unicode characters like ä properly to the console. In the Windows commandline, the characters are broken to senseless glyphs. Is there a simple way to avoid this? I'm using use utf8; . Thanks in advance. use utf8; simply tells Perl your source is encoded using UTF-8. It's not working on unix either. There are some strings that won't print properly ( print chr(0xE9); ), and most that do will print a "Wide character" warning ( print chr(0x2660); ). You need decode your inputs and encode your outputs. In unix systems,

Why is there no ms\do_ms.bat after perl Configure VC-WIN64A?

混江龙づ霸主 提交于 2019-12-03 16:29:41
问题 I'm compiling OpenSSL with Visual Studio 2015. I have installed: Visual Studio 2015 on Windows 10. ActivePerl-5.24.0.2400-MSWin32-x64-300558. nasm-2.11.08-win32. OpenSSL source code by git clone git://git.openssl.org/openssl.git What I did are: Create a batch file with lines below. @call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 @set path=%path%;C:\Users\gchen\AppData\Local\nasm perl Configure VC-WIN64A —prefix=C:\test\openssl Now I should do ms\do

Why is there no ms\\do_ms.bat after perl Configure VC-WIN64A?

南楼画角 提交于 2019-12-03 05:44:02
I'm compiling OpenSSL with Visual Studio 2015. I have installed: Visual Studio 2015 on Windows 10. ActivePerl-5.24.0.2400-MSWin32-x64-300558. nasm-2.11.08-win32. OpenSSL source code by git clone git://git.openssl.org/openssl.git What I did are: Create a batch file with lines below. @call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 @set path=%path%;C:\Users\gchen\AppData\Local\nasm perl Configure VC-WIN64A —prefix=C:\test\openssl Now I should do ms\do_win64a , but I can't find this batch file. In the directory ms , there are files 2016/08/22 17:39 <DIR> .

Installing Older Version of Module in Active Perl

你。 提交于 2019-12-02 16:13:29
问题 I am trying to install the Date::Manip Module in Perl. I am running Perl Version 5.14.2 and it does not seem to be installing successfully through the PPM. (PPM throws a 401 Access required error). I am guessing that the error here is that the Version of Perl is outdated for the module in the ppm. Since this is in the server and there are many other scripts running on a day to day basis, I can not upgrade the Perl version. I need to install the previous version of the Date::Manip module but