in reply to -c
and foo.pl contains:require "foo.pl"; &do_this("with that");
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!).sub do_this { print @_; } 1;
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 |