in reply to Re: Re: Creating loop on undefined hash key value
in thread Creating loop on undefined hash key value
for (my @stack = keys %links; $#stack>=0; ) { my $current = shift @stack; next if $links{$current}{visited}; if (something_happens()) { push @stack, "another key"; } }
Courage, the Cowardly Dog
|
|---|