in reply to Follow up to RFC: Templating without a System
require returns the last evaluated expression of a required file
No, that is only true the /first/ time that a file is required. I agree that it would be very nice if Perl allowed require (and use) to return something useful (in particular, a 'factory' that defaults to just the package name). But that isn't the case yet, even though it may appear that way if you do incomplete testing.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Follow up to RFC: Templating without a System (required)
by shmem (Chancellor) on Jul 01, 2006 at 15:30 UTC | |
by tye (Sage) on Jul 01, 2006 at 15:48 UTC | |
by shmem (Chancellor) on Jul 03, 2006 at 09:53 UTC | |
|