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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/AZCompactSectionList.pm

    r10218 r10253  
    1010
    1111use AZCompactList;
     12use strict;
     13no strict 'refs'; # allow filehandles to be variables and viceversa
    1214
    1315sub BEGIN {
    14     @ISA = ('AZCompactList');
    15 }
    16 
     16    @AZCompactSectionList::ISA = ('AZCompactList');
     17}
     18
     19my $arguments = [
     20         ];
    1721my $options =
    1822{   'name'     => "AZCompactSectionList",
     
    183187    # should be recursively classified.
    184188    #--
    185     foreach $dm_pair (@$multiple_cl_ref)
     189    foreach my $dm_pair (@$multiple_cl_ref)
    186190    {
    187191    my ($doc_OID,$mdoffset,$metavalue) = @$dm_pair;
     
    193197    foreach $node_name (keys %{$self->{'classifiers'}})
    194198    {
    195         $resafe_node_name = $node_name;
     199        my $resafe_node_name = $node_name;
    196200        $resafe_node_name =~ s/(\(|\)|\[|\]|\{|\}|\^|\$|\.|\+|\*|\?|\|)/\\$1/g;
    197201        if ($metavalue =~ m/^$resafe_node_name$/i)
Note: See TracChangeset for help on using the changeset viewer.