Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Re: a simple include....by pfaut (Priest) |
on Apr 30, 2003 at 14:13 UTC ( [id://254297]=note: print w/replies, xml ) | Need Help?? |
'require' isn't quite exactly an '#include'. The included file has its own scope which is causing your error. Fortunately, that's not too hard to work around. Perl has very good support for reusable code. All you have to do is take a little time to figure out how to properly format it. These (along with hmerrill's recommendations]) ought to get you started.
In Section
Seekers of Perl Wisdom
|
|