http://www.perlmonks.org?node_id=983053


in reply to Re^3: Your random numbers are not that random
in thread Your random numbers are not that random

I ran my own download and compilation without tests to get the working version. I'm not clear what advantages perlbrew would offer, since I'm trying to avoid having to compile for every card (and every time I re-flash a card).

Regards,

John Davies

  • Comment on Re^4: Your random numbers are not that random

Replies are listed 'Best First'.
Re^5: Your random numbers are not that random
by tobyink (Canon) on Jul 22, 2012 at 09:11 UTC

    Compile it once onto one card and then make clones of that card. (If you have two SD slots, you could use the dd command on Linux to create fast, exact copies. Even without a second SD slot, you could use dd via a temporary intermediate disk image file stored on some other medium.)

    perlbrew comes in handy because it's very good at ensuring Perl installs into one particular directory without leaving any crud lying around on other parts of your system. (And also because it provides the shell aliases for swapping between different installations of Perl very easily.)

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

      While I can do this for my current project, it's not something that can be done for cards that have on them data that should be retained. And if other data can be replicated only by cloning a card, the position is untenable. I suppose it's my unfamiliarity with Linux. I'm not surprised that there isn't a precompiled version of Perl 5.16 for the Pi, but I was expecting it to be possible to create one. The hours of compiling are guaranteed to put people off using anything but the system Perl on a Pi, which may be why Python is their language of choice.

      Regards,

      John Davies