Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: determine the variable causing the error: Use of uninitialized value (don't pretend no warnings)

by Anonymous Monk
on Apr 13, 2017 at 19:36 UTC ( [id://1187873]=note: print w/replies, xml ) Need Help??


in reply to determine the variable causing the error: Use of uninitialized value

Hi,

In recent perls the warning will usually include the variable name

But its not like its a mystery of a hundred possibilities, its always narrowed down to one line

But since "debugging" is a hassle,

Knowing which variable it is not important, as are the warnings, so ignore it all

Don't pretend that you care when you don't :) its all voluntary

{ no warnings; print '%s %s %s %s %s %s %s %s', grep { defined $_ ? $_ : "" } $a, $b, $c , $d ,$e, $f, $g, $h, $i, $j, $k , $l , $m , $n , +$o , $p , $q; }
  • Comment on Re: determine the variable causing the error: Use of uninitialized value (don't pretend no warnings)
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found