perlquestion
vinoth.ree
<p>This is my module as Objects.pm</p>
<c>package Objects;
sub New
{
bless {},shift;
}
1;
</c>
<p>This is my program handler.pl using this module </p>
<c>use strict;
use warnings;
use Objects;
use Data::Dumper;
func();
sub func {
$main::Objects = New Objects;
print "This is in \"func\" function.\n";
}
</c>
<p>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</p>
<div class="pmsig"><div class="pmsig-734134">
Vinoth,G
</div></div>