Changeset 10218 for trunk/gsdl/perllib/plugins/SplitPlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/SplitPlug.pm
r9853 r10218 54 54 'desc' => "{SplitPlug.split_exp}", 55 55 'type' => "regexp", 56 'deft' => &get_default_split_exp(), 56 #'deft' => &get_default_split_exp(), 57 'deft' => "", 57 58 'reqd' => "no" } ]; 58 59 … … 65 66 66 67 sub 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); 83 76 84 77 $self->{'textcat_store'} = {};
Note:
See TracChangeset
for help on using the changeset viewer.