in reply to Extracting the number of %'s in a string
while ($x =~ m/%(.)/g) { push(@order, $1); $count{$1}++; } [download]