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

Don't you have to say .attack($enemy, %.weapons{$_}); }? $.weapons doesn't exist, only %.weapons does.

  • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
  • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"

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

    Don't you have to say .attack($enemy, %.weapons{$_}); }?

    Yes.

      Well you don't have to in the current Pugs....So is that a bug then? Or something that is currently undefined? It is hard to tell often which is mostly why I started this thread.


      ___________
      Eric Hodges