Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Modules: Building blocks for the Daft Adventureby mbond (Beadle) |
on Jun 12, 2001 at 15:51 UTC ( [id://87778]=note: print w/replies, xml ) | Need Help?? |
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. It actually calls it through a funtion and the above line is completely variable (so that it works from any function call) Michael Bond
In Section
Seekers of Perl Wisdom
|
|