Help for this page

Select Code to Download


  1. or download this
    my @visited   = (1 .. 5);
    my %unvisited = map { $_ => undef } 1 .. 9;
    ...
            push @visited , $_;
        }
    }
    
  2. or download this
    my %visited   = map { $_ => undef } (1 .. 4);
    my @unvisited = (1 .. 9);
    ...
        visit ( $router, \@unvisited );   # Adds routers to @unvisited
        $visited{$router} = undef;
    }