Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

chaoticset (2105)

  (email not shown publicly)
AOL IM: chaoticset23 (Add Buddy, Send Message)
Yahoo! ID: illuminatus_foil (Add User, Send Message)

JAPH. (That's right -- I'm not Really Inexperienced any more.)

I'm not just here, I'm here [], and here [] too, I ramble randomly in my philosophical blog [] and my other blog []. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Thursday November 15, 2001
05:42 PM

Wretched Cheesemongering

[ #1268 ]
...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);

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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.