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)

Wednesday January 09, 2002
02:36 PM

Yay!

[ #2015 ]
I grokked something! (I'm always so happy when that happens.)

It occurred to me that printing a blank cart and throwing a bunch of errors out wasn't what the cart printing sub was supposed to do...so I checked: I had a conditional set up to avoid it if there was no cart, but *it didn't check if the cart was empty*, just that there was a name set for the cart in the session ID.

Hm. Maybe I remember what this does okay after all...

Anyway, I sat back and, after maybe five minutes, figured I should just add

&& (keys %cart)

to the conditional that read

if (($cart))

and it worked.

I know that's not a big deal...but it's a big deal for me, right now, in this code. So I'll be happy about it, and have some more coffee. :)

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