Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by haukex (Archbishop)
on Aug 03, 2019 at 21:22 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found