activeperl

Installing Older Version of Module in Active Perl

旧城冷巷雨未停 提交于 2019-12-02 08:28:52
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 this is not found in the ppm. How do I go about doing this ? Thanks ! The reason the 401 error occurs is

How do I install XML::LibXML for ActivePerl?

北战南征 提交于 2019-12-01 17:41:07
I am new to Perl and I am using ActivePerl . I am getting the following error: Can't locate XML/LibXML.pm in @INC... I have tried everything but cannot find the steps to install the "correct" module for XML::LibXML. Here is exactly what is going on. I am running a script from a command prompt: c:\temp>perl myscript.pl The first few lines of myscript.pl: #!/usr/bin/perl use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); use HTTP::Date; use XML::Parser; use LWP::UserAgent; use XML::LibXML; use Archive::Extract; use Encode; use LWP::Simple; require HTTP::Request; ... Then I get this error: c:\temp

ActivePerl. .pl files no longer execute but open in Notepad instead

末鹿安然 提交于 2019-11-28 10:17:56
问题 I have perl scripts which were running in Windows 7 just fine as of this morning. I made the mistake of using NotePad as the default for opening/editng my .pl files. Now, when I attempt to run the unedited .pl files from a DOS prompt, the script does not execute but opens the associated source code file in Windows Explorer. This is the same for all my .pl files no matter the complexity (including classic "hello world". I have been researching changes need to the registry - it all looks fine.

@ARGV is empty using ActivePerl in Windows 7

谁说我不能喝 提交于 2019-11-27 14:09:32
I have the following Perl script. I am trying to run it in Windows 7 using ActivePerl: #!c:\Perl64\bin\perl.exe -w use strict; my $mp3splt_exe = 'c:\Program Files (x86)\mp3splt\mp3splt.exe'; my $mp3splt_args = '-o "@n @f" -g "r%[@o @N]" -f -t 6.0'; print @ARGV; my $filename = $ARGV[0]; print "$mp3splt_exe $mp3splt_args $filename\n"; (as you can see, I am trying to create a wrapper for mp3splt :-) ) When I run it like this: C:\Program Files (x86)\mp3splt>run_mp3splt.pl a I get this: Use of uninitialized value $filename in concatenation (.) or string at C:\Program Files (x86)\mp3splt\run_mp3splt

Why do I have to specify the -i switch with a backup extension when using ActivePerl?

喜你入骨 提交于 2019-11-27 04:59:27
I cannot get in-place editing Perl one-liners running under ActivePerl to work unless I specify them with a backup extension: C:\> perl -i -ape "splice (@F, 2, 0, q(inserted text)); $_ = qq(@F\n);" file1.txt Can't do inplace edit without backup. The same command with -i.bak or -i.orig works a treat but creates an unwanted backup file in the process. Is there a way around this? This is a Windows/MS-DOS limitation. According to perldiag : You're on a system such as MS-DOS that gets confused if you try reading from a deleted (but still opened) file. You have to say -i.bak, or some such. Perl's -i

How do I ignore the Perl shebang on Windows with Apache 2?

二次信任 提交于 2019-11-27 01:52:49
I have set up a local Perl web environment on my Windows machine. The application I'm working on is originally from a Linux server, and so the shebang for source .pl files look like so: #!/usr/bin/perl This causes the following error on my Windows dev machine: (OS 2)The system cannot find the file specified. Is it possible to change my Apache 2 conf so that the shebang is ignored on my Windows machine? Of course I could set the shebang to #!c:\perl\bin\perl.exe , that much is obvious; but the problem comes to deploying the updated files. Clearly it would be very inconvenient to change this

@ARGV is empty using ActivePerl in Windows 7

喜夏-厌秋 提交于 2019-11-26 16:38:58
问题 I have the following Perl script. I am trying to run it in Windows 7 using ActivePerl: #!c:\Perl64\bin\perl.exe -w use strict; my $mp3splt_exe = 'c:\Program Files (x86)\mp3splt\mp3splt.exe'; my $mp3splt_args = '-o "@n @f" -g "r%[@o @N]" -f -t 6.0'; print @ARGV; my $filename = $ARGV[0]; print "$mp3splt_exe $mp3splt_args $filename\n"; (as you can see, I am trying to create a wrapper for mp3splt :-) ) When I run it like this: C:\Program Files (x86)\mp3splt>run_mp3splt.pl a I get this: Use of

Why do I have to specify the -i switch with a backup extension when using ActivePerl?

纵饮孤独 提交于 2019-11-26 11:26:08
问题 I cannot get in-place editing Perl one-liners running under ActivePerl to work unless I specify them with a backup extension: C:\\> perl -i -ape \"splice (@F, 2, 0, q(inserted text)); $_ = qq(@F\\n);\" file1.txt Can\'t do inplace edit without backup. The same command with -i.bak or -i.orig works a treat but creates an unwanted backup file in the process. Is there a way around this? 回答1: This is a Windows/MS-DOS limitation. According to perldiag: You're on a system such as MS-DOS that gets