in reply to un-Nifty qr OR ASCII bullet parser
Safer (allows "-", for example):
Alternative (shorter and returns a compiled regexp unlike the OP's and the above solutions):my $bullet = sprintf qr/[%s]/, quotemeta join '', keys %bullets;
my ($bullet) = map qr/[\Q$_\E]/, join '', keys %bullets;
In Section
Cool Uses for Perl