in reply to Re^3: Perl syntax checking without `perl -c` (bareword)
in thread Perl syntax checking without `perl -c`
yeah, that's what I meant initially, how much does one want to invest for a temporary 90% solution.
But this thread has also become an intellectual challenge and it's still possible to have a better solution.
So for completeness:
The dynamic %INC hook shown here could be extended to provide an import routine which exports all symbols requested.
This won't cover subs with special prototypes or subs which are exported by defaults though, but will get you closer to your "unreasonable" goal. ;-)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Perl syntax checking without `perl -c` [perl lint]
by kcott (Archbishop) on Dec 06, 2020 at 02:55 UTC |