if (substr ($str1, $pos) =~ /^\Q$str2/) { ... } # or if (substr ($str1, $pos, length $str2) eq $str2) { ... }
MeowChow s aamecha.s a..a\u$&owag.print
In reply to (MeowChow) Re: substring exists at particular postion?
by MeowChow
in thread substring exists at particular postion?
by redemption
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |