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

    r10218 r10253  
    3232use iso639;
    3333
     34use strict;
     35no strict 'refs'; # allow filehandles to be variables and viceversa
     36
    3437sub BEGIN {
    35     @ISA = ('BasClas');
     38    @AZList::ISA = ('BasClas');
    3639}
    3740
     
    7679    my $self = (defined $hashArgOptLists)? new BasClas($classifierslist,$inputargs,$hashArgOptLists): new BasClas($classifierslist,$inputargs);
    7780
     81    if ($self->{'info_only'}) {
     82    # don't worry about any options etc
     83    return bless $self, $class;
     84    }
     85
    7886    if (!$self->{"metadata"}) {
    7987    print STDERR "AZList Error: required option -metadata not supplied \n";
     
    131139
    132140    # find the first available metadata
    133     foreach $m (@{$self->{'meta_list'}}) {
     141    foreach my $m (@{$self->{'meta_list'}}) {
    134142    $metavalue = $doc_obj->get_metadata_element($doc_obj->get_top_section(), $m);
    135143    $metaname = $m;
Note: See TracChangeset for help on using the changeset viewer.