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

I am new to perl. This question is valid, but I have no idea how to display the value, or debug. Let me know how can I display it and I will come back to you.

Regards
Laszlo

Replies are listed 'Best First'.
Re^7: perl-5.18.0 install problem
by marto (Cardinal) on Jul 01, 2013 at 12:46 UTC
    perl -e 'print "$^O\n"';

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

      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; }