in reply to Possible to catch undefined sub at "compile" time?
use warnings; use strict; sub monk {} sub go { mink 123; }
Done.
It also wouldn't be hard to write a module to scan the symbol table for references to undefined subroutines after the main script finished compiling and right before it starts running. I believe diotalevi(?) already wrote a module to report references to undefined subroutines.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Possible to catch undefined sub at "compile" time? (two ways)
by diotalevi (Canon) on Oct 10, 2007 at 18:09 UTC | |
by Anonymous Monk on Oct 15, 2007 at 10:49 UTC |