in reply to Re^3: Perl syntax checking without `perl -c`
in thread Perl syntax checking without `perl -c`
What if a missing module was installed in the meantime?
A module "FakeInc" called via something like perl -MFakeInc -c could check if the module is available before installing a facade.
~~~
Thinking about it, having a code hook at the last position of @INC could also handle all missing modules...
from require : You can also insert hooks into the import facility by putting Perl code directly into the @INC array. There are three forms of hooks: subroutine references, array references, and blessed objects.
oops ... I didn't realized there was already a demo: Re: Perl syntax checking without `perl -c`
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`
by stevieb (Canon) on Dec 05, 2020 at 17:00 UTC | |
by LanX (Saint) on Dec 05, 2020 at 17:44 UTC |