in reply to Re: Scrabble word arrangements with blank tiles
in thread Scrabble word arrangements with blank tiles
I find my $blanks = scalar ( my @blanks = ( $letters =~ /[^A-Z]/g ) ); more intuitive.## Find the number of blanks while ($letters =~ /[^A-Z]/) { $letters =~ s/[^A-Z]//; $blanks++; }
But, I like the other code a lot and am learning from it :)
|
|---|