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

Re^4: Are state machines just for parsing?

by samtregar (Abbot)
on Dec 07, 2004 at 23:35 UTC ( #413053=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Are state machines just for parsing?
in thread Are state machines just for parsing?

You know, I think you're right. I didn't think hard enough about what $_ was in the examples I was looking at.

Now I guess the only problem is that the code in DFA::Simple is decidedly scary. Maybe by tomorrow I'll have shaken the memory and I can start using the module with a clear conscience.

Thanks!
-sam


Comment on Re^4: Are state machines just for parsing?
Re^5: Are state machines just for parsing?
by diotalevi (Canon) on Dec 07, 2004 at 23:43 UTC
    One thing I'll note is that use strict isn't used in DFA::Simple. You may want to give it a treatment of that before actually using it. You'd want to rescind it when it calls your functions so that you can pass in function names instead of hard references.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2014-10-21 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (99 votes), past polls