in reply to Next from inner loop only works "most of the time"
I am unable to reproduce your problem. This SSCCE never prints any output for me.
#!/usr/bin/perl use strict; use warnings; my @result = 'whew'; my %master_letter_freq = ( w => 1, h => 1, t => 1, o => 1, r => 2, e => 1, ); OUTER: foreach (@result) { my %seen; $seen{$_}++ for (split //,lc $_); foreach (keys %seen) { next OUTER if ($seen{$_} > $master_letter_freq{$_}); } print "$_\n"; }
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Next from inner loop only works "most of the time"
by Marshall (Canon) on May 20, 2021 at 06:03 UTC | |
by hippo (Archbishop) on May 20, 2021 at 09:15 UTC | |
by Marshall (Canon) on May 20, 2021 at 10:05 UTC |