Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Less-than-helpful warnings

by Sandy (Curate)
on Dec 11, 2003 at 00:48 UTC ( #313937=note: print w/ replies, xml ) Need Help??


in reply to Less-than-helpful warnings

print $a," ", $b," ", $c," ", $d," ", $e,"\n";
produces the following output, which may be more useful
1 2 3 4 Use of uninitialized value in print at test4.pl line 9.
In other words, in list context you get better info then when concatenating strings (which is what happens when you "$a $b $c"


Comment on Re: Less-than-helpful warnings
Select or Download Code
Re: Re: Less-than-helpful warnings
by ysth (Canon) on Dec 11, 2003 at 03:31 UTC
    That's going on depend on if/how STDOUT and STDERR are buffered. You won't always see the error in the place where the undefined value is. In fact, when I try, I never do.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2015-07-04 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls