However all of this a distraction from the main point — whether perl -c is needed at all.
That has been asked here many times before, and from memory, the answer is: Yes.
Ie. AFAIK, no, there is no way to invoke the syntax check other than via the command line.
In reply to Re^3: How to do perl -c inside perl?
by BrowserUk
in thread How to do perl -c inside perl?
by rockyb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |