in reply to Do multiple calls to 'use X' abuse the compiler?
use CGI::Application; imports the symbols from CGI::Application (if any) everytime it's executed.
use CGI::Application qw( );, on the other hand, is just a require that occurs at compile-time.
use base doesn't seem to have much overhead.
If I have 10 calls to 'use' in various modules (same namespace definition).. how much of a hit is that for the interpreter?
Benchmark it. It's the only way to know.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Do multiple calls to 'use X' abuse the compiler?
by diotalevi (Canon) on Mar 02, 2008 at 02:18 UTC | |
by ikegami (Patriarch) on Mar 02, 2008 at 03:17 UTC | |
by diotalevi (Canon) on May 01, 2008 at 15:42 UTC |