Ignore:
Timestamp:
2008-06-06T11:04:57+12:00 (16 years ago)
Author:
mdewsnip
Message:

Adding "use strict", and fixing problems identified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/ClassifyTreeNode.pm

    r12844 r15890  
    44use ClassifyTreePath;
    55use GDBMUtils;
     6use strict;
    67
    78# /** Constructor
     
    121122        # and then replacing any occurance to the parents old clid with the
    122123        # parents new clid
    123         $old_child_clid = $child_node->getCLID();
     124        my $old_child_clid = $child_node->getCLID();
    124125        #rint STDERR "* considering: " . $old_child_clid . "\n";
    125126        if($old_child_clid =~ /^CL/)
    126127          {
    127             $new_child_clid = $new_clid . substr($old_child_clid, length($old_clid));
     128            my $new_child_clid = $new_clid . substr($old_child_clid, length($old_clid));
    128129            #rint STDERR "* shifting child $old_child_clid to $new_child_clid\n";
    129130            $child_node->changeCLID($new_child_clid);
     
    407408            # children first!
    408409            @children = reverse $self->getChildren();
    409             $offset2 = scalar(@children) + 1;
     410            my $offset2 = scalar(@children) + 1;
    410411            foreach my $sibling_node (@children)
    411412              {
     
    432433    $child_node->setTitle($path->getLastPathComponent());
    433434    # Update the contains metadata for this node
    434     $contains = $self->getContains();
     435    my $contains = $self->getContains();
    435436    if($contains =~ /\w/)
    436437      {
Note: See TracChangeset for help on using the changeset viewer.