in reply to Re^2: Detect undefined subroutines
in thread Detect undefined subroutines

Interesting idea, but it doesn't seem to work.
tilly@(none):~$ perl -ce 'use strict; *foo->()' -e syntax OK tilly@(none):~$ perl -e 'use strict; *foo->()' Undefined subroutine &main::foo called at -e line 1.
Tested with Perl 5.8.4.

UPDATE I see, my oversight.

Replies are listed 'Best First'.
Re^4: Detect undefined subroutines
by ihb (Deacon) on Sep 18, 2004 at 20:42 UTC

    You need to turn on warning to see them...

    $ perl -Mstrict -cwe '*foo->()' Name "main::foo" used only once: possible typo at -e line 1. -e syntax OK $ perl -Mstrict -we '*foo->()' Name "main::foo" used only once: possible typo at -e line 1. Undefined subroutine &main::foo called at -e line 1.

    ihb

    Read argumentation in its context!