Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

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 exploiting the Monastery: (7)
As of 2016-10-25 11:05 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (317 votes). Check out past polls.