disable warnings within PLP::Script
[perl/plp/.git] / lib / PLP / Functions.pm
index 627d39071d0e99e15da7212e6c5d44965130794d..c298dca0d37d821ece7f12d6370974f302678bcb 100644 (file)
@@ -16,7 +16,7 @@ sub Include ($) {
        $PLP::inA = 0;
        $PLP::inB = 0;
        local $@;
-       eval 'package PLP::Script; ' . PLP::source($PLP::file, 0, join ' ', (caller)[2,1]);
+       eval 'package PLP::Script; no warnings; ' . PLP::source($PLP::file, 0, join ' ', (caller)[2,1]);
        if ($@) {
                PLP::Functions::exit() if $@ =~ /\cS\cT\cO\cP/;
                PLP::error($@, 1);