[LON-CAPA-dev] Math::Complex won't be in 2.1

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Thu, 8 Dec 2005 09:10:30 -0500 (EST)


Hi All,

So I won't be able to include Math::Complex in 2.1.

Unless someone has some great idea on how to fix that this script is
up to 1 gig of consumed memory after 2000 iterations, and out of
memory on my machine after 4800 iterations.

use Safe;

my $i=0;
while (1) {
    my $safe = new Safe;
    $safe->deny_only(':dangerous');
    $safe->reval('use Math::Complex;');
    $i++;
    if ( $i%10 == 0 ) { print("$i\n"); }
}

-- 
guy@albertelli.com   0-7-1-9-27,137