Esteemed monks,
After reading about the Quantum::Entanglement module, I thought I should give it a try. It might just do exactly what I need for some noisemaking, but my first attempt at using it for anything ended in dismal failure.I used ppm to install the module on my ActiveState installation on a Win XP box. I tried to make a simple example, taken from the above mentioned article. Here's what I got:
#! /usr/bin/perl use strict; use Quantum::Entanglement; my $die = entangle( 1=>1, 1=>2, 1=>3, 1=>4, 1=>5, 1=>6 ); foreach my $i ( 1 .. 5 ) { print "$die "; } print "\n";
My first run of this gave me: 1, 1, 1, 1, 1, which surprised me. I tried again, and got 3, 3, 3, 3, 3
I had expected $die to collapse to different values each time I observed it, but it seems to me that it is only collapsed once during each run. What am I missing here?
pernodIn reply to Problems with Quantum::Entanglement by pernod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |