submitted by /u/niceperl
[link] [comments]
[link] [comments]
(dix) 9 great CPAN modules released last week
Updates for great CPAN modules released last week. A module is considered great if its favorites count is greater or equal than 12. App...niceperl.blogspot.com
UUID::Tiny has a weird way of getting a random 32bit integer using 2x random 16 bit integers bitwise OR'd together:
sub _rand_32bit { _init_globals(); my $v1 = int(rand(65536)) % 65536; my $v2 = int(rand(65536)) % 65536; return ($v1 << 16) | $v2; }
Anyone know why you would do this instead of just: my $rand = int(rand(2**32));
? Also why the modulus, isn't it redundant?
submitted by /u/scottchiefbaker
[link] [comments]
I forgot it was CPAN Day, but it still is CPAN Day in parts of the world so maybe you can get some CPAN housecleaning in. I use this day to delete old versions of my distributions from CPAN.
submitted by /u/briandfoy
[link] [comments]