in reply to Modules: Building blocks for the Daft Adventure

an simple excert from a package that I used in my perl mud.

because this is a learning experience, i'm just giving the skeleton of what i did.:) The ideas will be the same for making dice rolls into a module.

in a file called "comm.pm" which is in the same directory as the main perl script.
package comm; ... sub tell { my($client,$argument) = @_; ... return($output); } #### and it is used in that main program somethign like this: use comm; ... comm::tell($client,$arg);
It actually calls it through a funtion and the above line is completely variable (so that it works from any function call)

Michael Bond