Changeset 1279 for branches/New_Config_Format-branch/gsdl/perllib/plugin.pm
- Timestamp:
- 2000-07-13T10:21:53+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New_Config_Format-branch/gsdl/perllib/plugin.pm
r835 r1279 29 29 30 30 sub load_plugins { 31 my ($plugin_list ) = @_;31 my ($plugin_list, $verbosity) = @_; 32 32 my @plugin_objects = (); 33 34 $verbosity = 2 unless defined $verbosity; 33 35 34 36 foreach $pluginoptions (@$plugin_list) { … … 49 51 map { $_ = "\"$_\""; } @$pluginoptions; 50 52 my $options = join (",", @$pluginoptions); 53 $options =~ s/\$/\\\$/g; 51 54 eval ("\$plugobj = new \$pluginname($options)"); 52 55 die "$@" if $@; 53 56 57 # initialize plugin 58 $plugobj->init($verbosity); 59 54 60 # add this object to the list 55 61 push (@plugin_objects, $plugobj);
Note:
See TracChangeset
for help on using the changeset viewer.