Help for this page
use 5.010; ... if( $string ~~ @patterns ) { say q(matched); }
gizmo@veterok: <bash>[~/dev/smart_match_regex_test] $ ./test.pl (?i-xsm:foo)(?i-xsm:ba(r|z))(?i-xsm:quux)