Sure, but "system" is going to do a lot worse (at least on NT) than that.
It's going to create a whole new process and invoke a whole new perl. If you
want to avoid re-compiling a script you should consider using a module.

> From: Dirk Bremer [mailto:[EMAIL PROTECTED]]
> 
> Brian,
> 
> The camel book says that the do function parses the script 
> each time, so its not a good idea to use it inside a loop, 
> i.e. where the
> do would use the same script multiple times.
> 
> Dirk Bremer - Systems Programmer II - AMS Department - NISC
> 636-922-9158 ext. 652 fax 636-447-4471
> 
> <mailto:[EMAIL PROTECTED]>
> 
> ----- Original Message -----
> From: "Brian Steele" <[EMAIL PROTECTED]>
> To: "perl-win32-users" <[EMAIL PROTECTED]>
> Sent: Monday, March 05, 2001 12:02 PM
> Subject: Re: Executing a script within another script
> 
> 
> > WHOOPS.
> >
> > Sorry... should be "do 'scriptname'";
> >
> > e.g.
> >
> > do extra.pl;
> >
> > Brian
> 
> 
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
> 
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to