Michael G Schwern wrote:
> Never seen it in 5.6.1, but it sounds like an odd chomp() mistake.  Where
> did you get this perl?

I installed Perl along with Cygwin.  Here's what I'm seeing with chomp. 
I'm not familiar enough with Perl on Windows to know what's expected
from chomp, or whether the string in question should have a CR in the
first place.

  DB<1> $foo = "a\r\n"

  DB<2> chomp $foo

  DB<3> print length $foo
2
  DB<4> print ord(substr $foo, 0, 1)
97
  DB<5> print ord(substr $foo, 1, 1)
13

$/ is set to a newline.

> > Also, I see a few tests are skipped because they say they need
> > Test::Harness version 1.20 or 1.23.  But I just installed 1.26 - CPAN
> > listed it as a prerequisite.
> 
> Did you install it or "install" it?  ie. Did you run 'make install' (or
> nmake install) or just copy the .pm files somewhere?  The normal
> installation process should overwrite the old Test::Harness.

I used the CPAN module.  "perl -MCPAN -e shell" and "install
Test::Harness".

> PS  Test::Harness is way beyond 1.26.

Sorry, I meant 2.26 (the references to 1.20 and 1.23 above are correct). 

Turns out I have 1.1604 installed.  2.26 doesn't seem to be installing
correctly:

....
All tests successful, 48 subtests skipped.
Files=9, Tests=447, 22 wallclock secs ( 8.78 cusr + 11.87 csys = 20.65
CPU)
  /usr/bin/make test -- OK
Running make install
Installing /usr/man/man3/Test.Harness.3
Installing /usr/man/man3/Test.Harness.Assert.3
Installing /usr/man/man3/Test.Harness.Iterator.3
Installing /usr/man/man3/Test.Harness.Straps.3
Writing /usr/lib/perl5/5.6.1/cygwin-multi/auto/Test/Harness/.packlist
Appending installation info to
/usr/lib/perl5/5.6.1/cygwin-multi/perllocal.pod
  /usr/bin/make install  -- OK

I still have 1.1604 installed at this point.

$ perl -e 'use Test::Harness; print $Test::Harness::VERSION'
1.1604
--
Danny R. Faught
Tejas Software Consulting
http://www.tejasconsulting.com/

Reply via email to