in reply to dynamic loading of modules
You're assigning $mod1 a value, but doing so outside of the BEGIN{} block. So any code inside the BEGIN{} block doesn't know about $mod1's value. Example:
$testvar = "Hello world!\n"; BEGIN{ print $testvar; }
The output will be...
Use of uninitialized value in print at mytest.pl line 4.Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: dynamic loading of modules
by opensourcer (Monk) on Aug 28, 2006 at 06:37 UTC | |
by shmem (Chancellor) on Aug 28, 2006 at 08:36 UTC |