Overlapping 'use' inefficient?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a CGI script running under mod_perl with 'use DBI;' in the mod_perl
startup file. The script also contains 'use DBI;' so that if it is run as a
standard CGI script it will still work. A custom module is imported into
this script and that module also contains 'use DBI;' in case I have to work
with a server on which mod_perl isn't available.

Do these overlapping 'use' statements create any inefficiencies or is it all
taken care of auto-magically?


Re: Overlapping 'use' inefficient?

gunzip wrote:

Quoted text here. Click to load it

The inefficiency is negledgible.  For details:

perldoc -f use

Site Timeline