in reply to Re^2: Do multiple calls to 'use X' abuse the compiler?
in thread Do multiple calls to 'use X' abuse the compiler?

The real answer is that every use() past the first is only a hash lookup

I said use Module qw( ); is just a hash lookup, but use Module; isn't. Are you contradicting that?

you ought to already know if you care about the overhead of each

How? I heard import can be fairly costly. But to know for sure, one would been benchmark it.

And whether or not he ought to know is not important. He asked so I answered.

Replies are listed 'Best First'.
Re^4: Do multiple calls to 'use X' abuse the compiler?
by diotalevi (Canon) on May 01, 2008 at 15:42 UTC

    ->import is frequently extremely cheap especially when it is just Exporter's. Modules are of course free to write their own import and may gmake them as expensive as they wish.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊