in reply to
a simple include....
use
and
require
are the most common mechanism to import stuff into your code. But the thing that is closest to C's #include is
do
. Pass it a string: perl will treat it as a filename, and execute the file using the same scoping rules as
eval
. --Dave
Comment on
Re: a simple include....
Replies are listed 'Best First'.
Re: Re: a simple include....
by
pcouderc
(Monk)
on Apr 30, 2003 at 14:43 UTC
Thank you, I have just tried that, but I get the same error
Global symbol "$SousMaintenance" requires explicit package name...
[reply]
Re: Re: Re: a simple include....
by
hmerrill
(Friar)
on Apr 30, 2003 at 15:17 UTC
A code snippet would help us to help you debug it :-)
[reply]
In Section
Seekers of Perl Wisdom