Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/SplitPlug.pm

    r9853 r10218  
    5454    'desc' => "{SplitPlug.split_exp}",
    5555    'type' => "regexp",
    56     'deft' => &get_default_split_exp(),
     56    #'deft' => &get_default_split_exp(),
     57    'deft' => "",
    5758    'reqd' => "no" } ];
    5859
     
    6566
    6667sub new {
    67     my ($class) = @_;
    68     $self = new BasPlug($class, @_);
    69 
    70     $self->{'plugin_type'} = "SplitPlug";
    71    
    72     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    73     my $option_list = $self->{'option_list'};
    74     push( @{$option_list}, $options );
    75    
    76     if (!parsargv::parse(\@_,
    77              q^split_exp/.*/^, \$self->{'split_exp'},
    78              "allow_extra_options")) {
    79     print STDERR "\nIncorrect options passed to $class.";
    80     print STDERR "\nCheck your collect.cfg configuration file\n";
    81     die "\n";
    82     }
     68    my ($class) = shift (@_);
     69    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     70    push(@$pluginlist, $class);
     71
     72    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     73    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     74
     75    my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
    8376
    8477    $self->{'textcat_store'} = {};
Note: See TracChangeset for help on using the changeset viewer.