marcokuma has asked for the wisdom of the Perl Monks concerning the following question:
Without $gen or %{$patterns{$gen}} changing, sometimes, for no apparent reason, this block was skipped when the subroutine was invoked.while (($s_pattern,$p_pattern) = each %{$patterns{$gen}}) { # ... }
the problem disappears, and the loop is never skipped.foreach $s_pattern (sort keys(%{$patterns{$gen}})) { $p_pattern = ${$patterns{$gen}}{$s_pattern}; # ... }
|
|---|