XP is just a number | |
PerlMonks |
Re^4: Perl syntax checking without `perl -c`by LanX (Saint) |
on Dec 03, 2020 at 15:15 UTC ( [id://11124586]=note: print w/replies, xml ) | Need Help?? |
The problem I see with this filesystem approach is maintenance. 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.
updateoops ... I didn't realized there was already a demo: Re: Perl syntax checking without `perl -c`
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|