strawberry-perl

Accessing IPv6 resolvable URL with port (e.g. localhost:12345) results in Bad Address in Strawberry Perl 5.30.1

旧时模样 提交于 2021-02-07 16:22:05
问题 When using strawberry perl 5.30.1 under Windows 10 with IPv6 enabled, URLs with Portnumbers cannot be resolved properly due to what appears to be a bug in the DNS parser of Perl. For the following test, we have a simple webserver listening on Port 8810 for all interfaces. Port 12345 does NOT host anything. Following is the script we use for reproduction: use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $result=$ua->get("http://localhost:8810/"); print "(DNS

Accessing IPv6 resolvable URL with port (e.g. localhost:12345) results in Bad Address in Strawberry Perl 5.30.1

可紊 提交于 2021-02-07 16:20:30
问题 When using strawberry perl 5.30.1 under Windows 10 with IPv6 enabled, URLs with Portnumbers cannot be resolved properly due to what appears to be a bug in the DNS parser of Perl. For the following test, we have a simple webserver listening on Port 8810 for all interfaces. Port 12345 does NOT host anything. Following is the script we use for reproduction: use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $result=$ua->get("http://localhost:8810/"); print "(DNS

Accessing IPv6 resolvable URL with port (e.g. localhost:12345) results in Bad Address in Strawberry Perl 5.30.1

时光怂恿深爱的人放手 提交于 2021-02-07 16:06:01
问题 When using strawberry perl 5.30.1 under Windows 10 with IPv6 enabled, URLs with Portnumbers cannot be resolved properly due to what appears to be a bug in the DNS parser of Perl. For the following test, we have a simple webserver listening on Port 8810 for all interfaces. Port 12345 does NOT host anything. Following is the script we use for reproduction: use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $result=$ua->get("http://localhost:8810/"); print "(DNS

Strawberry Perl and PAR - run time error on other Windows machine: LWP will support https URLs if the LWP::Protocol::https module is installed

允我心安 提交于 2021-01-28 04:40:28
问题 I have two Windows 10 machines, and on one of them, I have installed Strawberry Perl (version 5.30.1 if it matters). My script is using REST::Client, and on this machine, the script runs perfectly. I'm using PAR to make an .exe I can run either the .pl script or the .exe executable; on this machine it runs perfectly. I am using the --execute option when I'm running pp.bat, and include an --xargs= option so that the script can execute and run successfully. Then I copy the .exe to another

To Convert CSV File to Hash Structure using TEXT::CSV_XS Module in perl

时光毁灭记忆、已成空白 提交于 2020-06-29 06:39:12
问题 I've below code which is used to read a csv file and convert to hash. The Keys are dependent on the number of key columns that user need. use warnings; use strict; my %hash; my $KeyCols = 2; while (<DATA>) { chomp; my @cols = split /,/, $_, $KeyCols+1; next unless @cols > $KeyCols; my $v = pop @cols; my $k = join '', @cols; $hash{$k} = $v; } I need help in achieving the same logic using TEXT::CSV_XS package for efficiency. Please help. 回答1: The real reason for using Text::CSV_XS is for

How can I create a portable strawberry with extra bundled modules?

别等时光非礼了梦想. 提交于 2020-02-02 04:20:10
问题 The portable strawberry perl is a godsend-- I can bundle it into an NSIS installer along with the actual scripts and have the user double click it. However, I'm still having to install CPAN modules that our scripts need, manually on each user's computer. Is there a portable way to 'inject' cpan modules into strawberry perl's portable version? Would it be a good idea to take the portable strawberry on a development machine, install modules via CPAN, and re-zip it for distribution? (I imagine I

Strawberry Perl v5.30.0 not able to install Tcl (Windows 10)

大城市里の小女人 提交于 2020-01-24 20:26:05
问题 I downloaded and installed strawberry-perl-5.30.0.1-64bit.msi from strawberryperl.com on my Windows 10 and tried to install Tcl module using cpan, but it fails for missing tclsh. What could be the problem? C:\Strawberry>cpan Tcl Loading internal logger. Log::Log4perl recommended for better logging CPAN: CPAN::SQLite loaded ok (v0.217) Database was generated on Thu, 24 Oct 2019 12:40:15 GMT Running install for module 'Tcl' CPAN: Digest::SHA loaded ok (v6.02) CPAN: Compress::Zlib loaded ok (v2

Strawberry perl, Can't locate App/Cpan.pm

为君一笑 提交于 2020-01-21 12:12:27
问题 I installed the 32 bit version of Strawberry perl(5.14.2.1). I am able to run the perl command. When ever I run the cpan command I get the following error: Can't locate App/Cpan.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/msys /usr/ lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8 .8 /usr/lib/perl5/site_perl .) at /c/strawberry/perl/bin/cpan line 5. BEGIN failed--compilation aborted at /c/strawberry/perl/bin/cpan line 5. I migrated from the 64 bit version

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

好久不见. 提交于 2020-01-01 17:27:08
问题 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

Perl package is installed but still see error

 ̄綄美尐妖づ 提交于 2019-12-24 08:38:31
问题 I have just installed the package in my system using the instructions described in the question "How to install .pm to run the perl script" Now, I am trying to run the Perl script But I still see the following error: Win32::OLE operating in debugging mode: _Unique => 1 at C:/Dwimperl/perl/site/lib/Win32/OLE/Lite.pm line 30 require Win32/OLE/Lite.pm called at C:/Dwimperl/perl/site/lib/Win32/OLE.pm line 48 require Win32/OLE.pm called at C:\Users\c_desaik\Desktop\pwrdb\offtarget\pwrdb.pl line 37