vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
This is my module as Objects.pm
package Objects; sub New { bless {},shift; } 1;
This is my program handler.pl using this module
use strict; use warnings; use Objects; use Data::Dumper; func(); sub func { $main::Objects = New Objects; print "This is in \"func\" function.\n"; }
I was getting the warning message like Name "main::Objects" used only once: possible typo at handler.pl line 31. why any thing is wrong here
Vinoth,G
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: "main::Objects" used only once: possible typo
by kennethk (Abbot) on Apr 28, 2009 at 14:33 UTC | |
Re: "main::Objects" used only once: possible typo
by hilitai (Monk) on Apr 28, 2009 at 14:36 UTC | |
Re: "main::Objects" used only once: possible typo
by mikeraz (Friar) on Apr 28, 2009 at 17:14 UTC | |
Re: "main::Objects" used only once: possible typo
by targetsmart (Curate) on Apr 29, 2009 at 06:01 UTC | |
Re: "main::Objects" used only once: possible typo
by Anonymous Monk on Apr 28, 2009 at 13:32 UTC | |
by kennethk (Abbot) on Apr 28, 2009 at 15:14 UTC |
Back to
Seekers of Perl Wisdom