http://www.perlmonks.org?node_id=252720


in reply to (USING POE!) Re: 'better mousetrap': how to perform timed event
in thread 'better mousetrap': how to perform timed event

Awesome ... i only have one nit-pick. ;)

Change the input match regex from:

$input =~ /$to_match/o
to:
$input =~ /\Q$to_match\E/
This will allow you to match metachars as regular characters. I also (rather cargo-cultish-ly) avoid using the o modifier. ask tye :D

eduardo++

maybe this should be added to POE Central?

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)