in reply to subroutine prototypes effectiveness across files?
With the caveat that I only use prototypes when I want something to act like a built-in operator, require is tripping you up. Since it happens at run-time, it's too late for perl to check the prototypes on existing code. The simplest solution is to wrap your require lines in BEGIN blocks.
Of course, someone will come flying around the corner to tell you not to use prototypes and someone else will say "you should write a module instead", which are both reasonable ideas, if a lot more work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: subroutine prototypes effectiveness across files?
by Anonymous Monk on Oct 24, 2003 at 22:52 UTC | |
by chromatic (Archbishop) on Oct 24, 2003 at 23:07 UTC |