| … | |
… | |
| 143 | next; |
143 | next; |
| 144 | } |
144 | } |
| 145 | if ( -r "${courseScriptsDirectory}${module_name}.pm" ) { |
145 | if ( -r "${courseScriptsDirectory}${module_name}.pm" ) { |
| 146 | eval(qq! require "${courseScriptsDirectory}${module_name}.pm"; import ${module_name};! ); |
146 | eval(qq! require "${courseScriptsDirectory}${module_name}.pm"; import ${module_name};! ); |
| 147 | warn "Errors in including the module ${courseScriptsDirectory}$module_name.pm $@" if $@; |
147 | warn "Errors in including the module ${courseScriptsDirectory}$module_name.pm $@" if $@; |
|
|
148 | #warn "loading $module_name"; |
| 148 | } else { |
149 | } else { |
| 149 | eval(qq! require "${module_name}.pm"; import ${module_name};! ); |
150 | eval(qq! require "${module_name}.pm"; import ${module_name};! ); |
| 150 | warn "Errors in including either the module $module_name.pm or ${courseScriptsDirectory}${module_name}.pm $@" if $@; |
151 | warn "Errors in including either the module $module_name.pm or ${courseScriptsDirectory}${module_name}.pm $@" if $@; |
| 151 | } |
152 | } |
| 152 | push(@class_modules, "\%${module_name}::"); |
153 | push(@class_modules, "\%${module_name}::"); |