back to unicode
[MPC.git] / modules / MWC.pm
blob85d589b9bbcc709a3c0b8f5aac7a36c49699f70c
1 package MWC;
3 # ******************************************************************
4 # Description : Instantiate a Driver and run it. This is here to
5 # maintain backward compatibility.
6 # Author : Chad Elliott
7 # Create Date : 1/30/2004
8 # ******************************************************************
10 # ******************************************************************
11 # Pragma Section
12 # ******************************************************************
14 use strict;
15 use Driver;
17 # ************************************************************
18 # Subroutine Section
19 # ************************************************************
21 sub new {
22 my $class = shift;
23 my $self = bless {'creators' => [],
24 }, $class;
25 return $self;
29 sub getCreatorList {
30 return $_[0]->{'creators'};
34 sub execute {
35 my($self, $base, $name, $args) = @_;
36 my $driver = new Driver($base, $name, @{$self->{'creators'}});
37 return $driver->run(@$args);