OK, I've cut out all of the code that does anything. The following, despite doing nothing with the value read from the file, still fails
#! /usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
open INFIL, "temp.txt" or die;
while (<INFIL>) {
#while (<DATA>) {
my $html = getprint("https://clio.columbia.edu/) or die;
}
exit;
__DATA__
How to conduct your own survey / Priscilla Salant and Don A. Dillman.
I have a workaround for now -- I dumped all 40,000+ lines to be processed in the DATA section. Still, it would be nice to figure out if this is user error (doubtful at this point), or, if it's a perl-related bug, get it fixed.
By the way, here's the perl -V for the cygwin perl:
$ perl -V
Summary of my perl5 (revision 5 version 22 subversion 3) configuration
+:
Platform:
osname=cygwin, osvers=2.6.1(0.30553), archname=cygwin-thread-multi
uname='cygwin_nt-6.3 cygwin 2.6.1(0.30553) 2016-12-16 11:55 x86_64
+ cygwin '
config_args='-des -Dprefix=/usr -Dmksymlinks -Darchname=x86_64-cyg
+win-threads -Dlibperl=cygperl5_22.dll -Dcc=gcc -Dld=g++ -Accflags=-gg
+db -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mnt/
+share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.3-1 -fdebug-pr
+efix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.3=/usr/src/debug/
+perl-5.22.3-1 -fwrapv'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRIC
+T_ANSI__ -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-pref
+ix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.3-
+1 -fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.3=/us
+r/src/debug/perl-5.22.3-1 -fwrapv -fno-strict-aliasing -fstack-protec
+tor-strong -D_FORTIFY_SOURCE=2',
optimize='-O3',
cppflags='-DPERL_USE_SAFE_PUTENV -D_GNU_SOURCE -U__STRICT_ANSI__ -
+ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/mn
+t/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.22.3-1 -fdebug-
+prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.22.3=/usr/src/debu
+g/perl-5.22.3-1 -fwrapv -fno-strict-aliasing -fstack-protector-strong
+'
ccversion='', gccversion='5.4.0', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
+, doublekind=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1
+6, longdblkind=3
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
+ lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags =' -Wl,--enable-auto-import -Wl,--export-all-sym
+bols -Wl,--enable-auto-image-base -fstack-protector-strong'
libpth=/usr/lib
libs=-lpthread -lgdbm -ldb -ldl -lcrypt -lgdbm_compat
perllibs=-lpthread -ldl -lcrypt
libc=/usr/lib/libcygwin.a, so=dll, useshrplib=true, libperl=cygper
+l5_22.dll
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' --shared -Wl,--enable-auto-import -Wl
+,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-
+strong'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_NEW_COPY_ON_WRITE
PERL_PRESERVE_IVUV PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE
+_TIME
USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
Built under cygwin
Compiled at Jan 15 2017 13:11:06
%ENV:
PERL5LIB="/home/mdk2126/perl5/lib/perl5"
PERL_LOCAL_LIB_ROOT="/home/mdk2126/perl5"
PERL_MB_OPT="--install_base "/home/mdk2126/perl5""
PERL_MM_OPT="INSTALL_BASE=/home/mdk2126/perl5"
@INC:
/home/mdk2126/perl5/lib/perl5/cygwin-thread-multi
/home/mdk2126/perl5/lib/perl5
/usr/lib/perl5/site_perl/5.22/x86_64-cygwin-threads
/usr/lib/perl5/site_perl/5.22
/usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads
/usr/lib/perl5/vendor_perl/5.22
/usr/lib/perl5/5.22/x86_64-cygwin-threads
/usr/lib/perl5/5.22
.
And here's the same for Strawberry:
O:\My Documents\ReCAP Transfer\perl>perl -V
Summary of my perl5 (revision 5 version 24 subversion 1) configuration
+:
Platform:
osname=MSWin32, osvers=6.3, archname=MSWin32-x86-multi-thread-64in
+t
uname='Win32 strawberry-perl 5.24.1.1 #1 Sun Jan 15 20:28:53 2017
+i386'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPER
+L_IMPLICIT
_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfiel
+ds',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.9.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
+, doubleki
nd=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1
+2, longdbl
kind=3
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='lo
+ng long',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\perl\perl\lib\CORE" -L"C:\perl\c\lib"
+'
libpth=C:\perl\c\lib C:\perl\c\i686-w64-mingw32\lib C:\perl\c\lib\
+gcc\i686-w
64-mingw32\4.9.2
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
+-ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm
+ -lversion
-lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdl
+g32 -ladva
pi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lw
+inmm -lver
sion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl524.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\perl\perl\lib\CORE" -L"C
+:\perl\c\l
ib"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT
+_INT
USE_ITHREADS USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
USE_PERL_ATOF
Built under MSWin32
Compiled at Jan 15 2017 20:39:08
@INC:
C:/perl/perl/site/lib/MSWin32-x86-multi-thread-64int
C:/perl/perl/site/lib
C:/perl/perl/vendor/lib
C:/perl/perl/lib
.