in reply to Re: Loading all files in a dir with use via for loop
in thread Loading all files in a dir with use via for loop
....load pm files here.... $PAGE = "test_function_a"; eval { &$PAGE; }; $@ and die( &nopageerror() ); $PAGE = "test_function_b"; eval { &$PAGE; }; $@ and die( &nopageerror() ); exit; sub test_function_a { print "in test_function_a"; } sub nopageerror { print "The function $PAGE is unknown"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Loading all files in a dir with use via for loop
by radiantmatrix (Parson) on Sep 29, 2005 at 12:42 UTC | |
by Delusional (Beadle) on Sep 29, 2005 at 13:27 UTC | |
by Delusional (Beadle) on Sep 29, 2005 at 14:09 UTC | |
by radiantmatrix (Parson) on Sep 29, 2005 at 19:57 UTC | |
by Roy Johnson (Monsignor) on Sep 29, 2005 at 20:33 UTC | |
by Delusional (Beadle) on Sep 30, 2005 at 13:02 UTC |