Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Name "main::a" used only once: possible typo

by subogero (Initiate)
on Sep 12, 2017 at 15:56 UTC ( #1199215=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $SIG{__WARN__} = sub {
        my $w = shift;
        warn $w unless $w =~ /::[ab]" used only once:/;
    };
    
  2. or download this
    my $orig_warn = $SIG{__WARN__};
    $SIG{__WARN__} = $orig_warn
        ? sub { my $w = shift; $orig_warn->($w) if $w !~ /::[ab]" used onl
    +y once/ }
        : sub { my $w = shift; warn $w if $w !~ /::[ab]" used only once/ }
    +;
    
  3. or download this
    my $abwarn = $SIG{__WARN__} // sub { warn shift };
    $SIG{__WARN__} = sub {
        my $w = shift;
        $abwarn->($w) if $w !~ /::[ab]" used only once:/;
    };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2019-02-20 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (106 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!