in reply to Re^2: Misreading m// documentation (perlop =~ )
in thread Misreading m// documentation
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Misreading m// documentation (perlop =~ )
by QM (Parson) on Apr 09, 2014 at 08:47 UTC | |
|
Re^4: Misreading m// documentation (perlop =~ )
by Anonymous Monk on Mar 27, 2014 at 19:35 UTC | |
by ikegami (Patriarch) on Mar 27, 2014 at 19:44 UTC | |
by Anonymous Monk on Mar 27, 2014 at 20:08 UTC | |
by ikegami (Patriarch) on Mar 28, 2014 at 17:05 UTC | |
by Anonymous Monk on Mar 28, 2014 at 17:29 UTC | |
|