http://www.perlmonks.org?node_id=500310


in reply to Weird Perl Rule I'm Probably Not Following

Your code contains several errors, which is to be expected of someone new to perl, it's $array[fieldnum] not @array[fieldnum] - add "use warnings;" and "use strict;" and you'll find several more (see Use strict warnings and diagnostics or die for more). A bigger question in my mind is why can't you use modules?

"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

Replies are listed 'Best First'.
Re^2: Weird Perl Rule I'm Probably Not Following
by moltar512 (Sexton) on Oct 14, 2005 at 17:12 UTC
    i'm trying to add complex number support for a open source program called Lon-Capa made by Michigan State University. Lon-Capa is an online homework submission system. they used perl to make it, and in the way that you define your problems. They use perl script to define how problems are randomly generated. I can't just use a module to make lon-capa understand complex numbers because if i did my problems wouldn't be compadible with lon-capa anymore. What i can do, however, is write a perl library file to do any math that capa doesn't already do. unless you guys know a better way.. hahahahhaa
      What i can do, however, is write a perl library file to do any math that capa doesn't already do. unless you guys know a better way.. hahahahhaa
      Um, use a *prewritten* "perl library file" to do the math that "capa" doesn't already do?