On Aug 12, 12:17 pm, [EMAIL PROTECTED] (Mr. Shawn H. Corey) wrote:

> Since the use statement comes after the package statement, the subroutines
> are add to that package, not the main.  The program will work up to the
>  subroutine moo, which is not defined.

I stand corrected.  I didn't realize the effects of 'package' happened
at compile time as well.

> Actually, 'require' only loads the file once.

The OP's example code only showed the file being 'used' once.  It did
not show the file being used, modified, and used again.  Therefore,
require is sufficient.

Paul Lalli


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to