ebodine has asked for the wisdom of the Perl Monks concerning the following question:
Here is the module:use Config; my $file = "/somedir/somefile"; my $file_obj = Config->new($file);
I don't see what I am doing wrong...any monks see what I am missing?? Any help/suggestions would be much appreciated.package Config; use strict; $VERSION = 0.1; $DEBUG = 1; # 1 Prints out debug information. sub new { my ($class) = @_; bless { _file => $_[1], }, $class; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OO Perl modules on 5.005_3
by mojotoad (Monsignor) on Jul 23, 2002 at 18:10 UTC | |
by ebodine (Novice) on Jul 23, 2002 at 18:30 UTC | |
|
Re: OO Perl modules on 5.005_3
by dpuu (Chaplain) on Jul 23, 2002 at 18:13 UTC |