Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Misreading m// documentation (perlop =~ )

by ikegami (Patriarch)
on Mar 27, 2014 at 18:57 UTC ( [id://1079977]=note: print w/replies, xml ) Need Help??


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
    Sorry, I've been away for a while...

    I pointed you to the wrong node. I replied to a subthread of the OP, and tried to highlight that to several responders, failing. I should have just left it to everyone's own devices to find the additions.

    And it's been so long since I posted last in this thread, I can't remember what I was so excited to tell everyone about. Perhaps just that I initially thought the documentation left something out, but then discovered that it didn't, and could perhaps just be tied together a little tighter.

    Cheers,

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

Re^4: Misreading m// documentation (perlop =~ )
by Anonymous Monk on Mar 27, 2014 at 19:35 UTC
    And then what happened?
      ???

        ikegami: ???

        and then what happened?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079977]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found