Wretched Cheesemongering

chaoticset on 2001-11-15T22:42:04

...which means I couldn't think of a decent title.

I did, however, come to a beautiful insight concerning the whole mess. I'm doing this wrong! (Huge shock, right?) Reading over the docs and realizing I could have an array of keys to a hash, it suddenly occurred to me.

my $j=0;
until (!(param(box$j))) {
@want = (@want, box$j);
$j++;
}

I only need two arrays (of card names), one hash (where the keys are the card names and each value is the whole line in the stock file for that name) and one scalar(the search term). There will be a couple of variables inside functions, but those will be the only globals.

Aeryn: You realize you're learning more slowly than the dumbest recruit.

John: Yeah, but I am learning.

Regardless of the rate I'm learning, I have work to do. Now that I've got a better way to get it done, I'm gonna go do it.

Then a test tonight; then studying for another test tomorrow; then doing that test tomorrow; then more programming. Should be fun. The test tonight is discrete math, and the test tomorrow is networking.

That's it.