Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^7: diagnostics: warning, deprecation, error

by Anonymous Monk
on Feb 17, 2026 at 16:42 UTC ( [id://11167337]=note: print w/replies, xml ) Need Help??


in reply to Re^6: diagnostics: warning, deprecation, error
in thread diagnostics: warning, deprecation, error

> You two removed the crucial file and line number.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11167337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2026-04-20 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.