Help for this page

Select Code to Download


  1. or download this
    open(sense,"java Listen -port /dev/ttyUSB0:115200 |")|| die "Failed to
    + listen";
    while(<sense>)
    ...
        $currentline= $_;
        print ("Line $currentline");   
    }
    
  2. or download this
    print stdout "$data";
    
  3. or download this
    open(sense,"./read_serial.pl |")|| die "Failed to listen";
    
  4. or download this
    system ("./read_serial &");
    open(sense,">- |") || die "Failed to listen";