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;
In reply to Re: Error with using structs as subroutine parameters
by jethro
in thread Error with using structs as subroutine parameters
by dellnak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |