Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Code review: Start and End markers to ensure Serial data is valid (updated)

by haukex (Bishop)
on Aug 03, 2019 at 21:22 UTC ( #11103827=note: print w/replies, xml ) Need Help??

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;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-09-26 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?