Re: Running a Perl Script from a Perl script

2001-09-25 Thread Brett W. McCoy
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > > On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > > > I generally agree. But if you have a perl script that is not a module, I have > > > found "do" to be very useful in certain circumstances. > > > > How does its execution differ from using system or

Re: Running a Perl Script from a Perl script

2001-09-25 Thread smoot
> "Brett W. McCoy" <[EMAIL PROTECTED]> said: > On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > > I generally agree. But if you have a perl script that is not a module, I have > > found "do" to be very useful in certain circumstances. > > How does its execution differ from using system or forking?

Re: Running a Perl Script from a Perl script

2001-09-25 Thread Brett W. McCoy
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > > Yikes. If you're going to that, you're better off creating a Perl module > > and using that in your script. 'do' is better for including subroutines > > and symbols from another file, since the file is eval'd, for all intents > > and purposes, in

Re: Running a Perl Script from a Perl script

2001-09-25 Thread smoot
> On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > > Take a look at the "do" function. I use it all the time in some of > > my CGI scripts. It takes a script filename and executes it as a perl > > program. > > Yikes. If you're going to that, you're better off creating a Perl module > and using t

Re: Running a Perl Script from a Perl script

2001-09-25 Thread Brett W. McCoy
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > > This may seem like an odd questiong but to avoid race conditions I need > > to be able to run a Perl script from a Perl script (Ie execute it > > without any user interaction). Is this possbile. > > > > Take a look at the "do" function. I use it

Re: Running a Perl Script from a Perl script

2001-09-25 Thread smoot
> "Daniel Falkenberg" <[EMAIL PROTECTED]> said: > This may seem like an odd questiong but to avoid race conditions I need > to be able to run a Perl script from a Perl script (Ie execute it > without any user interaction). Is this possbile. > Take a look at the "do" function. I use it all the

Re: Running a Perl Script from a Perl script

2001-09-24 Thread Brett W. McCoy
On Tue, 25 Sep 2001, Daniel Falkenberg wrote: > This may seem like an odd questiong but to avoid race conditions I need > to be able to run a Perl script from a Perl script (Ie execute it > without any user interaction). Is this possbile. > > if (something = something) { > RUN NEW PERL SCR