in reply to -c

If your program contains:
require "foo.pl"; &do_this("with that");
and foo.pl contains:
sub do_this { print @_; } 1;
Then this code must pass -c, because there's syntactically nothing wrong with it, and it cannot detect that foo.pl defines do_this, because that's not pulled in during compile time (it doesn't even need to exist!).

Finding a subroutine doesn't start until it gets invoked. This has long been the way, necessarily.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: RE: -c
by Adam (Vicar) on May 09, 2000 at 20:09 UTC
    That's what I was afraid of. Thanks!