in reply to Re^6: diagnostics: warning, deprecation, error
in thread diagnostics: warning, deprecation, error
We did not. My example uses a bogus module on the -M switch to trigger Perl and when done like that she does not return file and line number not even good old at -e line 1. For that you need to run perl from a file:
perl -MIPC::Cmd=run -Mautodie -le '$n="/tmp/blorp.pl";open$f,">",$n;pr +int$f "use Blorp;";close$f;@_=run(command=>"perl $n");$_=join"",@{$_[ +2]};s/ ([\(])/\n/g;s/ ([\/])/\n $1/g;s/\)//g;chomp;print'
Can't locate Blorp.pm in @INC you may need to install the Blorp module @INC entries checked: /Users/u/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/darwin-2level /Users/u/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0 /Users/u/perl5/perlbrew/perls/perl-5.42.0/lib/5.42.0/darwin-2level /Users/u/perl5/perlbrew/perls/perl-5.42.0/lib/5.42.0 at /tmp/blorp.pl line 1. BEGIN failed--compilation aborted at /tmp/blorp.pl line 1.
|
|---|