Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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.)
## ## 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/
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.


In reply to Re^7: Compile PERL from source on Windows by syphilis
in thread Compile PERL from source on Windows by MGoBlue

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • 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, 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, 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others surveying the Monastery: (7)
    As of 2018-01-16 16:44 GMT
    Find Nodes?
      Voting Booth?
      How did you see in the new year?

      Results (183 votes). Check out past polls.