in reply to Re: P6: OO Wizard Game (RPG kinda, sorta)
in thread P6: OO Wizard Game (RPG kinda, sorta)

The if isn't all that ugly ;). Either way the code you suggested doesn't work yet. I didn't even know that smart matching would do a hash key lookup...or what yours suppose to do? On the $ versus % note, I have updated my code with that, once I get some more updates I will probably recommit it.


___________
Eric Hodges
  • Comment on Re^2: P6: OO Wizard Game (RPG kinda, sorta)

Replies are listed 'Best First'.
Re^3: P6: OO Wizard Game (RPG kinda, sorta)
by Juerd (Abbot) on May 13, 2005 at 13:15 UTC

    I didn't even know that smart matching would do a hash key lookup

    See S04. Hash ~~ Any has no *, so it is reversible: Any ~~ Hash.

    I have updated my code with that, once I get some more updates I will probably recommit it.

    Why wait?

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }