in reply to Re^2: Possible to catch undefined sub at "compile" time?
in thread Possible to catch undefined sub at "compile" time?

The problem is, it may require running the script to determine if a function really isn't defined. You may have two scripts that declare functions into the same namespace, use AUTOLOAD, or generate functions within the script (possibly with input from an external source)

foreach my $function (<DATA>) { no strict refs; chomp $function; *$function = sub { print "$function : @_\n"; }; } mink(12); go('somewhere'); monk(8); __DATA__ mink go