Re: Script within a script

2004-01-17 Thread Wiggins d'Anconia
Barbara Lindsey wrote: I haven't seen this before. Can you do this to add more subs to a module without making a parent module out of them? With the 'system' definitely not, it executes in a separate process completely. 'require' simply loads the code, which may or may not have subs in it. In

Re: Script within a script

2004-01-15 Thread Wiggins d Anconia
Please bottom post... > You can execute that second script: > require script.pl > > or > > system('perl script.pl'); > While interesting solutions I would avoid both. The first is a very odd usage of require to me, if you want to go along those routes I suspect you are better off with do or e

Re: Script within a script

2004-01-15 Thread Barbara Lindsey
I haven't seen this before. Can you do this to add more subs to a module without making a parent module out of them? Octavian Rasnita wrote: You can execute that second script: require script.pl or system('perl script.pl'); - Original Message - From: "Kenneth W. Craft MCP" <[EMAIL PROT

Re: Script within a script

2004-01-15 Thread Octavian Rasnita
You can execute that second script: require script.pl or system('perl script.pl'); - Original Message - From: "Kenneth W. Craft MCP" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 14, 2004 3:06 PM Subject: Script within a script > Is it possible to execute a perl

RE: Script within a script

2004-01-14 Thread Charles K. Clarkson
Kenneth W. Craft MCP <[EMAIL PROTECTED]> wrote: : : Is it possible to execute a perl script within another perl : script? : : I have advertisements on many of my pages of my site that : are randomly picked using a random ad script. I am creating : some pages that are dynamically being created, an

Re: Script within a script

2004-01-14 Thread Barbara Lindsey
you can make your script into a module and then call the module from another perl script. > Is it possible to execute a perl script within another perl script? > > I have advertisements on many of my pages of my site that are randomly > picked using a random ad script. I am creating some pages th