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';
    }