Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

RFC: Adding variable name to warning "Use of uninitialized value ??? in ..."

by LanX (Chancellor)
on Apr 15, 2017 at 01:17 UTC ( #1187988=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    #aoh_ref:  $a->[$b]{'a  b'}
    
  2. or download this
    Name "main::OUT" used only once: possible typo at /home/lanx/pm/warn_u
    +ndef.pl line 141.
    *** TESTING["hash_ref", "\$h->{a}"] at /home/lanx/pm/warn_undef.pl lin
    +e 138, <DATA> line 2.
    ...
    Use of uninitialized values $$a[0]{'a'} $$a[0]{'a'} in concatenation (
    +.) or string at (eval 110) line 2, <DATA> line 12.
    Use of uninitialized values $$a[0]{'a'} $$a[0]{'a'} in printf at (eval
    + 113) line 2, <DATA> line 12.
    Use of uninitialized values $$a[0]{'a'} $$a[0]{'a'} in sprintf at (eva
    +l 116) line 2, <DATA> line 12.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://1187988]
Approved by Athanasius
Front-paged by kcott
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2017-05-22 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?