in reply to Misspelled subroutine name -- no way to catch it at compile time? C'mon.
Than use AUTOLOAD to catch the call before crashing.
You haven't told us which behavior you expect, so like this you're free to implement it yourself...
To catch a typo at compile time, drop the parens
See Re^3: How to identify incorrect subroutine calls in a perl program
Generally it's better to import the sub too, instead of a full qualified call.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Misspelled subroutine name -- no way to catch it at compile time? C'mon.
by ikegami (Patriarch) on Dec 16, 2024 at 20:19 UTC |