jspeaks has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encapsulation and Subroutine redefined warnings
by NetWallah (Canon) on Nov 24, 2003 at 22:20 UTC | |
by jspeaks (Novice) on Nov 24, 2003 at 22:27 UTC | |
|
Re: Encapsulation and Subroutine redefined warnings
by iburrell (Chaplain) on Nov 24, 2003 at 22:37 UTC | |
|
Re: Encapsulation and Subroutine redefined warnings
by qq (Hermit) on Nov 25, 2003 at 13:20 UTC | |
by jspeaks (Novice) on Nov 25, 2003 at 16:46 UTC | |
by qq (Hermit) on Nov 25, 2003 at 23:50 UTC | |
|
Re: Encapsulation and Subroutine redefined warnings
by dragonchild (Archbishop) on Nov 25, 2003 at 12:53 UTC |