in reply to hash values missing

One problem is that your code doesn't compile. If you add
use strict; use warnings;

you'll get

Global symbol "$modulename" requires explicit package name at /apps/ot +ctest/bin/report/Test0.perl line 10. Global symbol "$usermodule" requires explicit package name at /apps/ot +ctest/bin/report/Test0.perl line 11. Global symbol "$param1" requires explicit package name at /apps/otctes +t/bin/report/Test0.perl line 14. Global symbol "%hash2" requires explicit package name at /apps/otctest +/bin/report/Test0.perl line 14. Global symbol "$array" requires explicit package name at /apps/otctest +/bin/report/Test0.perl line 17. Global symbol "@mykeys" requires explicit package name at /apps/otctes +t/bin/report/Test0.perl line 20. Global symbol "$hashref" requires explicit package name at /apps/otcte +st/bin/report/Test0.perl line 20. Execution of /apps/otctest/bin/report/Test0.perl aborted due to compil +ation errors.

If you define all that, then you'll finally see: When I run your sample code, I get the error:

Null filename used at /apps/otctest/bin/report/Test0.perl line 19.

(That's your require ${modulename}; statement.)

Can you post the minimal runnable code that produces the problem you wish us to research?

How do you define $modulename?

Revised after I was chastened by chromatic for unintended rudeness.

Replies are listed 'Best First'.
Re^2: hash values missing
by chromatic (Archbishop) on Mar 26, 2008 at 17:07 UTC
    One problem is that your code doesn't compile.

    Waitaminute! I really do recommend the use of strict and warnings, but chastising someone for posting non-working code after you added code that makes the original code not compile is a little bit rude.