in reply to Class::Struct problem

The struct(...) call is executed at run time, which is only after there call to XXX->new().

So either make the call at compile time, or (recommended) do the construction of your classes first, either by putting it on the top of the code, or by writing it into a module and use it.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Class::Struct problem
by rovf (Priest) on Jun 08, 2010 at 12:54 UTC
    either make the call at compile time
    Thanks a lot, this works (this is the solution I prefer in this particular case).

    -- 
    Ronald Fischer <ynnor@mm.st>