My attention was directed to the post to which this is a reply. I'm not quite sure what the point of that post is, or why it was brought to my attention. All I can say is: Of course '^something' is a single-quoted string literal.
That doesn't mean it the code doesn't result in a regex match. We already know it does.
>perl -MO=Concise,-exec -e"$x =~ '^something'" 1 <0> enter 2 <;> nextstate(main 1 -e:1) v:{ 3 <#> gvsv[*x] s 4 </> match(/"^something"/) vKS/RTIME 5 <@> leave[1 ref] vKP/REFC -e syntax OK
In reply to Re^3: Misreading m// documentation (perlop =~ )
by ikegami
in thread Misreading m// documentation
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |