After an initial search (not using piggy-back), records are fetched by
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Node.pm
index 84eadca..74b5154 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Node.pm,v 1.2 2006-10-06 16:51:32 mike Exp $
+# $Id: Node.pm,v 1.5 2006-10-11 16:36:03 mike Exp $
 
 package ZOOM::IRSpy::Node;
 
@@ -98,6 +98,8 @@ Pretty-prints the node and, recursively, all its children.  The
 parameter is the level of indentation to use in printing the node;
 this method recursively invokes itself with higher levels.
 
+=cut
+
 sub print {
     my $this = shift();
     my($level) = @_;
@@ -157,7 +159,7 @@ sub select {
     my @sub = $this->subnodes();
     if ($address eq "") {
        return $this;
-    } elsif (my($head, $tail) = $address =~ /(.*):(.*)/) {
+    } elsif (my($head, $tail) = $address =~ /(.*?):(.*)/) {
        return $sub[$head]->select($tail);
     } else {
        return $sub[$address];