Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Daft text adventure project - from pmasby pmas (Hermit) |
on May 29, 2001 at 23:25 UTC ( [id://84048]=note: print w/replies, xml ) | Need Help?? |
1. How to store routines in separate files:
----------------- Now, in your main.pl program file, you may call subroutine defined in shared1.pm above: --------------------- 2. In project this huge, I advise to use not only 'use strict' everywhere, you may want to learn how to do 'prototypes' as well. It will help you to detect (some) errors when wrong numbers or types of parameters are passed to subroutine. While on that, you can also learn to pass hashes as references. Good luck on your long jourmey! PMAS
In Section
Seekers of Perl Wisdom
|
|