Delusional has asked for the wisdom of the Perl Monks concerning the following question:
What in the world am I doing wrong here? When this executes I get this error in the Apache error.log (and Error 500 in the Browser):for $plugin (<Main/*.pm>) { $plugin =~ s!/!::!g; $plugin =~ s/\.pm$//; use $plugin; }
Results in no error message in the browser, however, Errors in the Apache errors.log about missing and/or unknown function calls (Undefined subroutine), which would be in the included (use'd) .pm files...for $plugin (<Main/*.pm>) { $plugin =~ s!/!::!g; $plugin =~ s/\.pm$//; $plugin = "use $plugin\;"; $plugin; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Loading all files in a dir with use via for loop
by ikegami (Patriarch) on Sep 28, 2005 at 14:52 UTC | |
|
Re: Loading all files in a dir with use via for loop
by radiantmatrix (Parson) on Sep 28, 2005 at 15:19 UTC | |
by Delusional (Beadle) on Sep 29, 2005 at 07:35 UTC | |
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 | |
| |
|
Re: Loading all files in a dir with use via for loop
by scollyer (Sexton) on Sep 28, 2005 at 15:04 UTC | |
by scollyer (Sexton) on Sep 28, 2005 at 15:12 UTC |