When i run the program with more than one processor defined, I get:package coloTotals; require Exporter; use strict; our @ISA = qw(Exporter); our @EXPORT = qw(init process finish); our $VERSION = 1.00; sub init { ... } sub process { ... } sub finish { ... }
Does anyone know how to resolve this issue. The program still functions properly, but I want to learn the appropriate way to implement a program like this and also to remove these warnings. Does anyone have some sample code for implementing an OO program similar to this?Subroutine init redefined at lib/perl5/5.6.1/Exporter.pm line 57. Exporter::import('init', 'process', 'finish') called at load.p +l line 10 main::BEGIN() called at ModView.pm line 10 eval {...} called at ModView.pm line 10 Subroutine process redefined at lib/perl5/5.6.1/Exporter.pm line 57. Exporter::import('init', 'process', 'finish') called at load.p +l line 10 main::BEGIN() called at ModView.pm line 10 eval {...} called at SbModView.pm line 10 Subroutine finish redefined at lib/perl5/5.6.1/Exporter.pm line 57. Exporter::import('init', 'process', 'finish') called at load.p +l line 10 main::BEGIN() called at ModView.pm line 10 eval {...} called at ModView.pm line 10
In reply to Encapsulation and Subroutine redefined warnings by jspeaks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |