in reply to Late PM, 12/24/2014 & all year long

irMni pxrhvts oril. atpsae Cmley dhm

Perhaps not the intended output? I'm running v5.14.2 of perl on an Ubuntu box.

--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.

Replies are listed 'Best First'.
Re^2: Late PM, 12/24/2014 & all year long
by ww (Archbishop) on Dec 29, 2014 at 22:21 UTC

    As it says in the OP sig, ' suspected of being highly OS and version specific, but "Season's Greetings" anyway! '. /me cargo-culted, modified, tweaked the creation procedure repeatedly and finally went back to mere cargo-culting so it would run on the box that was then-available: Win7 & AS Perl v 5.018 and 5.016. Ubuntu box was down, so merely suspected (from docs and other notes and comments) that execution with a different OS (or different Perl, for that matter) would fail. Thanks for confirming and warning others.

    As best I understand it, srand and repeated calls to srand may produce inconsistent results even in Perls > 5.12... and (for others interested because they are stuck at some earlier vers.) anything before that is unlikely to work. For (slightly) more detail, see the node referenced in the sig of the OP, Re^2: Slightly Srandom JAPH.

    And Happy New Year (or, for latecomers, some other semi-appropriate holiday greeting)!

      Suggestion: When posting code that uses rand, intended for cross-platform consumption & reproducibility: use Math::Random::MT qw[ rand srand ];.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      It was in no way meant to be disrespectful. I did see that it was OS dependent which is why I posted my version of the OS and Perl.

      --
      I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.