projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bcb285
)
Correct parsing of deep paths (head ends at first, not last, colon).
author
Mike Taylor
<mike@indexdata.com>
Wed, 11 Oct 2006 16:35:43 +0000
(16:35 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 11 Oct 2006 16:35:43 +0000
(16:35 +0000)
lib/ZOOM/IRSpy/Node.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Node.pm
b/lib/ZOOM/IRSpy/Node.pm
index
eaf61a2
..
711d76b
100644
(file)
--- a/
lib/ZOOM/IRSpy/Node.pm
+++ b/
lib/ZOOM/IRSpy/Node.pm
@@
-1,4
+1,4
@@
-# $Id: Node.pm,v 1.3 2006-10-11 14:34:21 mike Exp $
+# $Id: Node.pm,v 1.4 2006-10-11 16:35:43 mike Exp $
package ZOOM::IRSpy::Node;
@@
-159,7
+159,8
@@
sub select {
my @sub = $this->subnodes();
if ($address eq "") {
return $this;
- } elsif (my($head, $tail) = $address =~ /(.*):(.*)/) {
+ } elsif (my($head, $tail) = $address =~ /(.*?):(.*)/) {
+ print "*** testing head='$head' tail='$tail'\n";
return $sub[$head]->select($tail);
} else {
return $sub[$address];