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…
- Home
- Posts tagged "Perl"
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…