Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: traversing a hash looking for path?

by Limbic~Region (Chancellor)
on Apr 13, 2006 at 23:50 UTC ( [id://543256]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant SRC  => 0;
    use constant TGT  => 1;
    ...
            push @{$_[WORK]}, {key => $_, path => "$src=>$_"};
        }
    }
    
  2. or download this
    sub find_path {
        my ($beg, $end, $net, $seen, $stop, $work) = @_;
    ...
        return find_path($beg, $end, $net, $seen, $stop, $next) if @$next;
        return 'path not found';
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://543256]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found