Also the "my" was removed from the @ISA and @EXPORT global arrays
Oh, I missed in your original code that you used 'my' when it should have been 'our'. The 'our' keyword declares a global package variable1, where 'my' declares a lexical variable that can't be seen by Exporter afterward.
As Corion pointed out, you should put back strict and warnings (which will still work once you declare the variables with 'our'), and use Exporter 'import'; is cleaner than messing with our @ISA=('Exporter').
(1) Actually, 'our' adds a global package variable into your lexical scope, which is a little bit different from "declaring a global".
In reply to Re^3: Using Win32::SerialPort in a module
by NERDVANA
in thread Using Win32::SerialPort in a module
by jmClifford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |