in reply to Confused by use base, I think.
Use base is intended to include code from another another package into your current one. The way I am reading your code, it looks like you are trying to base an object and hope that it inherits its methods, and that is not right. use base should be used like this,
package My::New::Module::Admin; use base 'My::New::Module::WWW';
All the code in My::New::Module::WWW is now available in your child package My::New::Module::Admin. Does that help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Confused by use base, I think.
by ikegami (Patriarch) on Jun 15, 2008 at 05:56 UTC | |
by Herkum (Parson) on Jun 15, 2008 at 15:03 UTC | |
by ikegami (Patriarch) on Jun 15, 2008 at 15:26 UTC | |
by Herkum (Parson) on Jun 15, 2008 at 19:23 UTC |