in reply to Perl does not recognize object method
Also see Simple Module Tutorial. I got your code to basically compile by adding
package L_Switch; use Exporter; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); @ISA = qw/Exporter/; %EXPORT_TAGS = (all => \@EXPORT_OK );
|
|---|