On Thu, 2005-04-21 at 11:09, Daniel Kasak wrote:
> Hi all.
> 
> I have a large script ( 6000 lines ) that I'd like to break into logical
> units. Is there a way I can tell perl to 'append' a list of files into 1
> script so that I can call subs from any of the files and have them
> treated as if they were all from the same script ( ie all my variables
> will be visible )?
> 
> Thanks :)


Dont do that,
   IMHO creating a script at runtime and executing is plain stupid.
Debugging will be a nightmare and so will maintenance be.

Why cant you divide the logical units and put them into functions , in
different library files , if necessary. Pass all variables as function
arguments.


Thanks
Ram

  


----------------------------------------------------------
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
----------------------------------------------------------

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to