- or download this
#!/usr/bin/perl --
use strict;
...
use Pashnoid::Fire;
my @ok_ports = Pashnoid::Fire->get_ports();
...
- or download this
package Pashnoid::Fire;
use Perl::OSType qw' is_os_type ';
...
eval q{use parent 'Pashnoid::Fire::Linux'; 1} or die $@;
}
1;
- or download this
use Win32;
...
sub get_ports {
my( $selfOrClass ) = shift;
...
- or download this
use Device::SerialPort;
...
sub get_ports {
my( $selfOrClass ) = shift;
...