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

perl -e 'print "$^O\n"';

Update: This of course assumes you already have a working version of Perl somewhere on your system.

Replies are listed 'Best First'.
Re^8: perl-5.18.0 install problem
by laszlot (Novice) on Jul 01, 2013 at 12:52 UTC

    It looks like I have a working version somewhere

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

      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.

      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.