rovf has asked for the wisdom of the Perl Monks concerning the following question:
Please explain why I get here the error message Can't locate object method "new" via package "XXX"
Class::Struct says about this way of using the struct function: "...assumes the current package name as the class name - so, why is XXX::new not recognized here?use strict; use warnings; XXX->new(); package XXX; use Class::Struct; struct('field' => '$');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class::Struct problem
by moritz (Cardinal) on Jun 08, 2010 at 12:44 UTC | |
by rovf (Priest) on Jun 08, 2010 at 12:54 UTC | |
|
Re: Class::Struct problem
by okram (Monk) on Jun 08, 2010 at 12:44 UTC | |
by rovf (Priest) on Jun 08, 2010 at 12:51 UTC | |
by FunkyMonk (Bishop) on Jun 08, 2010 at 12:56 UTC | |
by rovf (Priest) on Jun 08, 2010 at 13:30 UTC | |
by ikegami (Patriarch) on Jun 08, 2010 at 16:02 UTC |