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

    r10218 r10254  
    3333use Ogg::Vorbis::Header::PurePerl;
    3434
     35use strict;
     36no strict 'refs'; # allow filehandles to be variables and viceversa
    3537
    3638sub BEGIN {
     
    103105    my $doc_obj = new doc ($filename, "indexed_doc");
    104106    $doc_obj->set_OIDtype ("incremental");    # this is done to avoid hashing content of file
    105 
     107    my $section = $doc_obj->get_top_section();
     108   
    106109    # replace spaces in filename with %20 in url for metadata entry
    107110    my $url = $file;
     
    153156
    154157    # include any metadata passed in from previous plugins
    155     my $section = $doc_obj->get_top_section();
    156158    $self->extra_metadata ($doc_obj, $section, $metadata);
    157159
Note: See TracChangeset for help on using the changeset viewer.