Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: what does "use of uninitialized value" really mean?

by AnomalousMonk (Abbot)
on Jul 13, 2013 at 12:50 UTC ( #1044149=note: print w/ replies, xml ) Need Help??


in reply to what does "use of uninitialized value" really mean?

Of course, you don't give us the exact error message or short, self-contained code that will produce it. Is it something like this?

>perl -wMstrict -le "my @ra = qw(a b c d); my $uninitialized; print $ra[3]; print '----------'; print $ra[$uninitialized]; print $ra[undef]; " d ---------- Use of uninitialized value $uninitialized in array element at -e line +1. a Use of uninitialized value in array element at -e line 1. a


Comment on Re: what does "use of uninitialized value" really mean?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-12-18 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (66 votes), past polls