in reply to substr pattern matching
This is not a pattern match, however ... looks like your code should work fine.use strict; my $string = "Billiard"; if (index($string,'Bill') > -1) { print "found it!\n"; }
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)
|
|---|