Guest User

Untitled

a guest
May 8th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. recurseRegistry("Classes");
  2.  
  3.  
  4. sub recurseRegistry($){
  5.     $start = shift;
  6.     my $key = $Registry->{$start};
  7.     for (keys %$key) {
  8.         if (#We've reached a leaf) {
  9.             #Check if value matches what we're searching for, return path
  10.         }
  11.         elsif (#We are not at a leaf) {
  12.             recurseRegistry("$start/$_");
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment