Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 cooling their heels in the Monastery: (18)
As of 2015-08-03 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (45 votes), past polls