Help for this page

Select Code to Download


  1. or download this
        $port = new Device::SerialPort("/dev$opt_p");
    
  2. or download this
    write_chunk ("modem control stuff");
    
  3. or download this
    sub write_chunk {
        (my $count) = $port->write($_[0]);
    }
    
  4. or download this
    if ($TESTING) {
        use Test::MockObject;
    ...
    else {
        $port = new Device::SerialPort("/dev/$opt_p");
    }
    
  5. or download this
    wrote ATZ\r to the serial port
  6. or download this
    wrote Test::MockObject=HASH(0x885d760) to the serial port
  7. or download this
        * "mock(*name*, *coderef*)"
            Adds a coderef to the object. This allows code to call the nam
    +ed
    ...
                print $mock->fluorinate;
    
            will print a helpful warning message.