in reply to Error with using structs as subroutine parameters
With few exceptions lines like
should be listed at the beginning of a file, not inside of subroutines. I'm not sure, but use of a class inside a subroutine might lead to problems because the implied 'require' would create closures instead of sub-subroutines.use strict; use warnings; use Class::Struct;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error with using structs as subroutine parameters
by JavaFan (Canon) on Jun 08, 2009 at 10:43 UTC | |
by jethro (Monsignor) on Jun 08, 2009 at 12:45 UTC |