Stories
Slash Boxes
Comments
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)

chaoticset
  (email not shown publicly)
http://chaoticset.perlmonk.org/
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 [perlmonks.org], and here [javajunkies.org] too, I ramble randomly in my philosophical blog [blogspot.com] and my other blog [blogspot.com]. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Thursday October 04, 2001
02:08 PM

Long, Long Sigh

[ #874 ]
I have to keep reminding myself that I'm not good at this yet and it shouldn't be discouraging to find errors. Errors just show me what I've got to learn.

This code:

sub grab_cards {
inv_open();
while () {
$cards[$i] = chomp($_);
$i++;
}
$i = 0;
inv_close();
}

sub show_cards {
print "\n\n ***Sorted List***";
print "\n\nName Stock Shown\n";
unless (($cards[$i]) eq "") {
print "$card[$i]";
($name, $stock, $shown) = split /:/, $card[$i];
write;
$i++;
}
$i = 0;
}

produces this output:

***Sorted List***

Name Stock Shown
Use of uninitialized value in string at newcards.p line 49.
Use of uninitialized value in split at newcards.p line 50.
Use of uninitialized value in formline at newcards.p line 32.
Use of uninitialized value in formline at newcards.p line 32.
Use of uninitialized value in formline at newcards.p line 32.

And I *still* cannot figure out WHY.

My only notion so far that I haven't checked is that I'm not using the my statement properly, so I guess I'll check that next and then implement the sorter (shouldn't be difficult if the arrays are set up the way I want them) and the adder (a little harder.)

This is the next step.