Selecting large random integers in Perl

We had a very odd bug in a simulation we were writing recently.  We were supposed to be sampling from a large pool of possible data, but were getting a very weird distribution of values. After much debugging we found a most unusual cause. Here is the pop quiz – read through the short script…

Date
Categories
Tags
Comments

Published:April 11, 2011 View Post

Computing

Also tagged

Comments closed

Overestimating DWIM in Perl

I hit a bug in a script I was writing this week which reminded me that sometimes you can put too much faith in perl’s ability to ‘do what I mean’ (DWIM). It took me a couple of minutes to see what was going wrong here – see if you do any better. #!/usr/bin/perl use…

Date
Categories
Tags
Comments

Published:October 17, 2009 View Post

Computing

Also tagged

Comments closed