I did try to see what is in $contents and nothing was there.
Do you have a functioning perl already built on your machine ? If you do, try running the following script. (In that script you'll first need to change $filename to point to the full path to pod/perldelta.pod on your machine.)
## script.pl ##
use warnings;
use strict;
my $filename = 'C:/comp/perl-5.16.3/pod/perldelta.pod';
open RD, '<', $filename or die "Can't read: $!";
my @c = <RD>;
my $contents = join '', @c;
close RD or die "Can't close: $!";
my @want =
$contents =~ /perldelta - what is new for perl v(5)\.(\d+)\.(\
+d+)\n/;
die "Can't extract version from $filename" unless @want;
print "\n@want\n";
That script should reveal that @want contains (5, 16,3). Is that what you get ?
Then try running the same script using the perl that you've just built with your compiler. (That perl is located in the top level source folder - ie one level up from the win32 folder.)
To do that, cd to that top level source folder and run
perl /full/path/to/above/script.pl.
How does that fare ?
(While you're in that folder, you might also like to check the output of
perl -V just to verify that the perl that's being run is, in fact, the one that you've just built. The @INC listing at the end should *not* contain a site/lib directory, and the first directory listed should be in your source tree. )
Sorry - out of time for tonight, but I can pick this up again tomorrow morning if need be.
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.