For Python, there is a script called importchecker which tells you if you have unnecessary import
statements.
Is there a similar utility for Perl use
(and require
) statements?
From the VS Marketplace plugin page download the extension with the "Download Extension" link on the right hand side. Open a Perl source file, click "Run -> Start Debugging" or hit F5 and observe there is no error as before. Now explore all VSCocde IDE functions working nicely with Perl!
The name of the running program can be found in the $0 variable: print $0; man perlvar for other special variables. Sometimes the running program will not be the pl file, but a batch job that loaded and ran the pl file.
Take a look at Devel::TraceUse it might give you a chunk of what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With