Help for this page

Select Code to Download


  1. or download this
    my $test = shift;  # we want a binary "tape" of 1s and 0s as the arg
    
    ...
        die "Your input was: $test\nGive a string (tape) of zeros and ones
    + only!\n";
    }
    my @test_queue = split '', $test; # turn string into queue/array
    
  2. or download this
    c:\Documents and Settings\1\My Documents\perl\dfa\simple>code.pl 0
    code.pl 0
    Your input was: 0
    Give a string (tape) of zeros and ones only!