You can use:

require 'extrafile.pl';

The only minor complication would be that your
extrafie.pl must have the following as its last line:

1;

Eugene Haimov

-----Original Message-----
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 4:13 PM
To: activeperl
Subject: Divide Perl script


Hello, 

How can I divide my perl program in different files(in other words..move the sub 
routines in different files ) and then do an include in the mail perl file. The reason 
why I want to do this is because my main program is growing day by day and it's 
becoming difficult to navigate through it. Is there any alternate method to do this? I 
don't want to get in the process of converting these new files into modules and then 
import these modules. Just want to keep it simple. 

TIA
Shishir
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to