Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to include source files

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

please excuse this question from a newbie in perl but have some experience in C.
My question is: I miss an #INCLUDE-Statement as in C to include the source of other perl files into the compiled one.
I know about modules and packages but they will not solve my problem as they represent different name spaces.

Any hint?

Regards,
Dartmor
 
use the 'require' statement.

require '/path/to/source';

That's it.

--jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top