in reply to Compile Time Checking of Subroutine Calls is Possible After All
use strict; my $flag = shift; sub hello { return "hello by reference\n" } print xello() if $flag;
prints this diagnostic:
$ perl -MO=Lint,all blint.pl Undefined subroutine xello called at blint.pl line 4 blint.pl syntax OK
|
|---|