> 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 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 the calling script.

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.

-- 
Smoot Carl-Mitchell
Consultant



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to