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

    r10218 r10254  
    3333use parsargv;
    3434
     35use strict;
     36no strict 'refs'; # allow filehandles to be variables and viceversa
     37
    3538sub BEGIN {
    36     @ISA = ('SplitPlug');
     39    @MARCPlug::ISA = ('SplitPlug');
    3740    unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan");
    3841}
     
    261264    my @words = split(/ /, $text);
    262265
    263     foreach $word (@words) {
     266    foreach my $word (@words) {
    264267    # If printing this word would exceed the column end, start a new line
    265268    if (($linelength + length($word)) >= $columnwidth) {
     
    301304        foreach $metavalue ( @metavalues )
    302305        {
    303         $metavalue_str = $self->to_utf8($encoding,$metavalue->as_string());
    304         $doc_obj->add_utf8_metadata ($thissection, $metaname, $metavalue_str);
     306        my $metavalue_str = $self->to_utf8($encoding,$metavalue->as_string());
     307        $doc_obj->add_utf8_metadata ($section, $metaname, $metavalue_str);
    305308        }
    306309    }
Note: See TracChangeset for help on using the changeset viewer.