Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Error Reporting from Module

by Bloodnok (Vicar)
on Oct 09, 2019 at 12:43 UTC ( #11107243=note: print w/replies, xml ) Need Help??

in reply to Error Reporting from Module

It's probably all wrong and may not be exactly what you want, but having wanted something similar, I discovered this (Google _is_ your friend) ...

use warnings FATAL => 'all';

Just my 10 penn'orth...

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^2: Error Reporting from Module
by haukex (Bishop) on Oct 09, 2019 at 18:31 UTC

    warnings' FATAL has lexical scope, so unless the module provides a custom sub import that allows the person useing the module to turn them on, the user of the module can't do so. And they also don't fatalize warn statements.

    $ perl -Mstrict -Mwarnings=FATAL,all -le 'warn "Hello";my $x=1+"";prin +t $x' Hello at -e line 1. Argument "" isn't numeric in addition (+) at -e line 1.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-01-27 20:45 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (71 votes). Check out past polls.