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

Re: state is the root of evil?

by perlfan (Curate)
on Jun 29, 2016 at 17:31 UTC ( #1166892=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    }
    
    printf( qq{string "%s" is %s\n}, $test_string, ( $position eq q{final}
    + ) ? q{ACCEPTED} : q{REJECTED} );
    
  2. or download this
    $ perl state.pl abababac
    start -> 1 on "a"
    ...
    start -> 1 on "a"
    1 -> final on "c"
    string "abababac" is ACCEPTED
    
  3. or download this
    perl state.pl abababa
    start -> 1 on "a"
    ...
    1 -> start on "b"
    start -> 1 on "a"
    string "abababa" is REJECTED
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2019-11-18 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (90 votes). Check out past polls.

    Notices?