Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Interesting behavior of regular expression engine

by Anonymous Monk
on Mar 14, 2013 at 08:00 UTC ( #1023414=note: print w/replies, xml ) Need Help??


in reply to Re^3: Interesting behavior of regular expression engine
in thread Interesting behavior of regular expression engine

So, Larry at least thinks the steps are well defined.

I don't know what you're talking about, but that book is 12 years old at least, and larry himself hasn't touched the regex engine in about as long , optimizations have been added, things have changed

  • Comment on Re^4: Interesting behavior of regular expression engine

Replies are listed 'Best First'.
Re^5: Interesting behavior of regular expression engine
by Anonymous Monk on Mar 14, 2013 at 08:13 UTC

    Ok, I've read the rules in 5.9.4. The Little Engine That /Could(n't)?/ and they are prefaced with for this discussion we're pretending the optimizer doesn't exist. , pretty much what we've been saying

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1023414]
help
Chatterbox?
choroba's discovered two instances of a weird animal in the code at work: \@$var
[Eily]: hum, tied scalar, generates a new array when derefed ? :D
[Corion]: choroba: Ah, when doing a shallow copy, I prefer [ @$var ] - I think \@$var might return the same reference instead of a reference to a fresh copy
[Corion]: perl -wle "my $ar = [1,2,3]; my $br=\@$ar; print qq($ar / $br)" confirms this to me
[karlgoethebier]: "discovered" this to sum an array: perl -E 'say scalar map {1 .. $_} (1..3);'

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-09-26 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?