in reply to Re^2: Follow up to RFC: Templating without a System (required)
in thread Follow up to RFC: Templating without a System
So, not only are you using an undocumented feature of require, but you are also using it in a manner contrary to its purpose. In a code review, I'd reject such use unless you documented and enforced your unusual requirements. That is, you should check %INC before requireing so you can report that the file got required already (and include a comment about why that matters and that the feature of require that you are depending on is not documented).
Even better, Perl already has a tool that does what you are using require for: do $file. Use that instead.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Follow up to RFC: Templating without a System (required)
by shmem (Chancellor) on Jul 03, 2006 at 09:53 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |