[LON-CAPA-users] Any thoughts on this perl snippet?
   
    Mark Lucas
     
    lon-capa-users@mail.lon-capa.org
       
    Fri, 21 Sep 2007 17:56:06 -0400
    
    
  
Hi,
I've got a problem that uses a physlet to show rays traveling through
three different materials. The students, by observing the rays, then
rank the index of refractions.
It's been periodically spewing the following error, but only
sporadically and not consistently.
Is there anything in the perl code, or are there things the students
might be doing with the web (particularly considering the physlet
involved) that might be causing the death of Hole.pm?
Thanks!
Mark
-------- Forwarded Message --------
 Error [Three Materials (active)]
=== Excerpt ============================================================
 Died at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Safe/Hole.pm line 75.
 occured while running 
$iora=0.0;
$ranka=1;
$iorb=0.5;
$rankb=2;
$iorc=1.0;
$rankc=3;
$seed=&random(0,3,0.1);
($ior1,$ior2,$ior3) = &map(seed,[$iora,$iorb,$iorc]);
($rank1,$rank2,$rank3) = &map(seed,[$ranka,$rankb,$rankc]);
$dior1=$ior2-$ior1;
$dior2=$ior3-$ior2;
The error occurred on host ohioua4
========================================================================
Use 
 http://capa2.phy.ohiou.edu/adm/email?username=lucas&domain=ohiou
to access the full message.