Ignore:
Timestamp:
2005-07-19T16:27:51+12:00 (19 years ago)
Author:
kjdon
Message:

added 'use strict' to all plugins, and made modifications (mostly adding 'my') to make them compile

File:
1 edited

Legend:

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

    r10218 r10254  
    3838use gsprintf;
    3939
     40use strict;
     41no strict 'refs'; # allow filehandles to be variables and viceversa
     42
    4043BEGIN {
    4144    @ArcPlug::ISA = ('BasPlug');
    4245}
     46
     47my $arguments = [
     48         ];
    4349
    4450my $options = { 'name'     => "ArcPlug",
     
    4652        'abstract' => "no",
    4753        'inherits' => "yes" };
    48 
     54         
    4955sub gsprintf
    5056{
     
    5763    push(@$pluginlist, $class);
    5864
    59     if(defined $arguments){print "SETSEGE\n"; push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     65    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    6066    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    6167
     
    7985    foreach my $subfile (@$file_list) {
    8086        my $doc_oid = $subfile->[1];
    81         $index_status = $archive_info->get_status_info($doc_oid);
     87        # why do we get this when it is not used???
     88        my $index_status = $archive_info->get_status_info($doc_oid);
    8289        $archive_info->set_status_info($doc_oid,"B");
    8390    }
     
    133140        my $doc_oid = $subfile->[1];
    134141
    135         $index_status = $archive_info->get_status_info($doc_oid);
     142        my $index_status = $archive_info->get_status_info($doc_oid);
    136143
    137144        my $processor_mode = $processor->get_mode();       
Note: See TracChangeset for help on using the changeset viewer.