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'.)

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.