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

    r10218 r10254  
    6666
    6767use SplitPlug;
     68use strict;
     69no strict 'refs'; # allow filehandles to be variables and viceversa
    6870
    6971# ReferPlug is a sub-class of BasPlug.
    7072sub BEGIN {
    71     @ISA = ('SplitPlug');
     73    @ReferPlug::ISA = ('SplitPlug');
    7274}
    7375
     
    125127    return undef unless ($$textref =~ /^\s*%/);
    126128
     129    my $cursection = $doc_obj->get_top_section();
    127130    # Report that we're processing the file
    128131    print STDERR "<Processing n='$file' p='ReferPlug'>\n" if ($gli);
     
    165168    $line =~ s/\s+/ /g;
    166169    $text .= "$line\n";
    167     $ReferFormat .= "$line\n";
     170    # $ReferFormat .= "$line\n"; # what is this???
    168171   
    169172    next unless ($line =~ /^%[A-Z\*]/);
Note: See TracChangeset for help on using the changeset viewer.