mreeske has asked for the wisdom of the Perl Monks concerning the following question:
and everything worked fine. However, after a few module additions, I have been getting this error:my $object = new Some::Random::Module();
To correct this error I simply have to change my above syntax toUndefined subroutine &Some::Random::Module called at /perlmodules/Anot +her/Different/Module.pm line 92.
and everything continues on fine. This error has been continually poping up over the course of today and is trying my patience-- is there a reason why I must use one syntax over another, and is there any technical difference between the two syntaxes?my $object = Some::Random::Module->new();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl modules and "new"
by bart (Canon) on May 01, 2003 at 19:46 UTC | |
Re: Perl modules and "new"
by dragonchild (Archbishop) on May 01, 2003 at 19:49 UTC | |
Re: Perl modules and "new"
by crenz (Priest) on May 01, 2003 at 21:45 UTC |