This effect can also be achieved by appropriate constructs in the pattern itself, which is the only way to do it in Perl.
If this modifier is set, the pattern is forced to be "anchored", that is, it is constrained to match only at the start of the string which is being searched (the "subject string"). This effect can also be achieved by appropriate constructs in the pattern itself, which is the only way to do it in Perl.