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
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
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
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
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
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