P has asked for the wisdom of the Perl Monks concerning the following question:
- conf.pm:package socket; use strict; use IO::Socket; use conf; use irc; my $conf = load conf;
Where is the problem? I don't know why it returns this problem... %conf is not empty. Thanks.package conf; use strict; use irc; my %conf; sub load { my $proto = shift; my $self = ref($proto) || $proto; my $this = \%conf; bless($this, $self); return $this; }
Edit by castaway: added code tags.
20040103 Edit by BazB: Changed title from 'problem with modules'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module problem: can't locate object method
by !1 (Hermit) on Jan 03, 2004 at 16:25 UTC | |
|
Re: Module problem: can't locate object method
by cLive ;-) (Prior) on Jan 03, 2004 at 18:46 UTC | |
|
Re: Module problem: can't locate object method
by TomDLux (Vicar) on Jan 03, 2004 at 15:22 UTC | |
by Joost (Canon) on Jan 03, 2004 at 15:34 UTC | |
|