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/SectionList.pm

    r10218 r10253  
    3535use sorttools;
    3636
     37use strict;
     38no strict 'refs'; # allow filehandles to be variables and viceversa
     39
    3740sub BEGIN {
    38     @ISA = ('List');
     41    @SectionList::ISA = ('List');
    3942}
    4043
     44my $arguments = [];
    4145my $options = { 'name'     => "SectionList",
    4246        'desc'     => "{SectionList.desc}",
     
    7175    my $thissection = undef;
    7276
    73     my $option;
    74     foreach $option (@options)
     77    foreach my $option (@options)
    7578    {
    7679    if ($option =~ m/^section=(\d+)$/i)
     
    118121    if (defined $self->{'meta_list'}) {
    119122    # find the first available metadata
    120     foreach $m (@{$self->{'meta_list'}}) {
     123    foreach my $m (@{$self->{'meta_list'}}) {
    121124        $metavalue = $doc_obj->get_metadata_element($section, $m);
    122125        $metaname = $m;
Note: See TracChangeset for help on using the changeset viewer.