in reply to Re^2: Using Win32::SerialPort in a module
in thread Using Win32::SerialPort in a module
# The following 2 lines I suspect are the lines that make a package in +to a module # Also, they seem to make it a member of a class Exporter. require Exporter; @ISA = qw( Exporter ); # This module "is a" Exporter class member
That's not what I suggested you use.
Please use
require Exporter; Exporter->import('import');
There is no need to employ inheritance here, and the usage is what Exporter recommends too.
Also, why did you remove use strict; use warnings; from your code? These allow Perl to spot errors in your code and tell you about it.
|
|---|