in reply to Re^7: perl-5.18.0 install problem
in thread perl-5.18.0 install problem

It looks like I have a working version somewhere

/opensource/perl-5.18.0 > perl -e 'print "$^O\n"'; nonstop_kernel

Replies are listed 'Best First'.
Re^9: perl-5.18.0 install problem
by marto (Cardinal) on Jul 01, 2013 at 13:00 UTC

    This shows the problem. Here you show that $^O has the value nonstop_kernel where the code you have checks that $^O has the value nonstop-kernel, so this will always fail for you.

Re^9: perl-5.18.0 install problem
by laszlot (Novice) on Jul 01, 2013 at 12:57 UTC

    And this also answers why the if statement does work (it is and underscore not a hyphen). This would work:

    if ($^O eq 'nonstop_kernel') { $size = 4096; }

      Exactly! Now if this is a legitimate issue for users of your platform (and this seems to be the case) you could perhaps consider raising this as a bug, so that the issue can be addressed.

      Update:

      So reading http://www.nntp.perl.org/group/perl.perl5.porters/2010/08/msg163485.html we see:

      'To repeat what I said off list I think this seems fine (probably a good idea to explain why it is needed), but I think that the list should be aware of this just in case they have further suggestions. In particular I wonder if the chosen value of $^O is "right"...'

      So the chosen value of $^O seems to be in question from the outset.

        I think this is a legitimate issue. The if statement is not present in Copy.pm and for this platform it should be there for the install script to work. Is it enough to state that this is a bug, or there is procedure to do this?