That way $match can be any length you want.if (substr($word, 2, length($match)) eq $match) { print "Gotta match\n"; } else { print "No match\n"; }
In reply to Re: Character matching in a word?
by TedPride
in thread Character matching in a word?
by ausag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |