http://qs321.pair.com?node_id=254297


in reply to Re: Re: a simple include....
in thread a simple include....

'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.

90% of every Perl application is already written.
dragonchild