All pastes #750845 Raw Edit

Anonymous

public text v1 · immutable
#750845 ·published 2007-10-26 20:47 UTC
rendered paste body
while($stop == 0) {
                    my $inbuf;
                    print "g\n";
                    my $n = sysread($fh, $inbuf, 1);
                    print "h\n";
                    if($n == 1) {
                        print "inbuf match: ";
                        if($tmp =~ /[0-9],[0-9][0-9]\>/) {
                            print "yes\n";
                        } else {
                            print "no\n";
                        }
                        if($inbuf eq "\n" || $tmp =~ /[0-9],[0-9][0-9]\>/) {
                            $stop = 1;
                        } else {
                            if(!($inbuf eq "\r")) {
                                $tmp .= $inbuf;
                            }
                        }
                    }
                    print "inbuf = :$tmp:\n";
                }