Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: I refuse to explain this

by Dominus (Parson)
on Apr 09, 2001 at 08:06 UTC ( #70920=note: print w/ replies, xml ) Need Help??

in reply to Re: I refuse to explain this
in thread I refuse to explain this

Says strredwolf:

The main key behind it is the use re 'eval', which allows Perl to be inside the (?{...}) considitonal regexps.
No, that is not what use re 'eval' does; I suggest you consult the manual.

The use re 'eval' is not really necessary to the program; it is only there to allow me to make the code simpler by abbreviating the regex.

Hmmm, it looks like a bit of source code and a state engine to me!
Nope, totally wrong! (Except perhaps in the trivial sense that every program is a 'state engine'.)

Comment on Re: I refuse to explain this
Replies are listed 'Best First'.
Re: Re: I refuse to explain this
by strredwolf (Chaplain) on Apr 09, 2001 at 08:13 UTC
    I did. But I'll agree that it's helps shorten it (sub in regexp?).

    But expanding $_ out does make it look like you're doing a virtual machine inside of the s///ex regexp. Source code (or is it VM machine code?) and a state engine, like my own obfusc.


      Says strredwolf:
      But expanding $_ out does make it look like ... a state engine,
      (Shrug.) All I can do is to repeat that it isn't a state engine. In fact, I'm at something of a loss to imagine where you think the state variable is.

        $d and $q. The loop, of course, is conditional on $N.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-11-27 06:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls