in reply to Re: Perlish dice for gamers (oh, and importing autoloaded functions)
in thread Perlish dice for gamers (oh, and importing autoloaded functions)

I think calling mainGames::Dice::r3d3 or somesuch the first time without importing it first will trigger the AUTOLOAD entry point.
  • Comment on Re: Re: Perlish dice for gamers (oh, and importing autoloaded functions)

Replies are listed 'Best First'.
Re: Re: Re: Perlish dice for gamers (oh, and importing autoloaded functions)
by hossman (Prior) on Sep 09, 2002 at 20:17 UTC
    you can't call main::r3d3 without importing first, if you call Games::Dice::r3d3, then yes, the AUTOLOAD will be used but only the first time, after that the method will allready exist.