- or download this
#!/usr/bin/env perl
use warnings;
...
say '';
`perl -I$lib_dir -c $file`;
- or download this
use strict;
use warnings;
...
use Multiple::Levels::Two;
print "Compiled and ready...\n";
- or download this
spek@scelia ~/scratch $ ./syntax_check script.pl
Skipping assumed pragma 'strict'
...
Skipping available module 'Data::Dumper'
script.pl syntax OK
- or download this
spek@scelia ~/scratch $ perl -c script.pl
Can't locate Test/One.pm in @INC (you may need to install the Test::On
+e module) (@INC contains: /home/spek/perl5/perlbrew/perls/perl-5.26.1
+/lib/site_perl/5.26.1/x86_64-linux /home/spek/perl5/perlbrew/perls/pe
+rl-5.26.1/lib/site_perl/5.26.1 /home/spek/perl5/perlbrew/perls/perl-5
+.26.1/lib/5.26.1/x86_64-linux /home/spek/perl5/perlbrew/perls/perl-5.
+26.1/lib/5.26.1) at script.pl line 5.
BEGIN failed--compilation aborted at script.pl line 5.