in reply to Re: check symbol table w/ dynamic name
in thread check symbol table w/ dynamic name

This worked great. Thanks for this clean solution. So, here is what it will look like:

if (!$INC{ "$module.pm" }) { eval { require "${module}.pm"; } }

Thanks for this!

Shannon Kerr

Replies are listed 'Best First'.
Re^3: check symbol table w/ dynamic name
by jwkrahn (Abbot) on Oct 17, 2006 at 04:51 UTC
    The point is that perl already does the test when you require a module so your test is superfluous.

      Point well taken. Thank you jwkrahn!

      Shannon Kerr