in reply to substring exists at particular postion?
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 Section
Seekers of Perl Wisdom
in reply to substring exists at particular postion?
if (substr ($str1, $pos) =~ /^\Q$str2/) { ... } # or if (substr ($str1, $pos, length $str2) eq $str2) { ... }
MeowChow s aamecha.s a..a\u$&owag.print