Help for this page

Select Code to Download


  1. or download this
    my $state = 'idle';
    while ( my $input = <> ) {
    ...
        elsif ( $state eq ...
        else { die "internal error: bad state $state" }
    }
    
  2. or download this
    my $state = 'idle';
    while ( my $input = <> ) {
    ...
        elsif ( $input =~ ...
        else { die "unknown input: $input" }
    }
    
  3. or download this
    use warnings;
    use strict;
    ...
        }
        return \@outdata;
    }