kiat has asked for the wisdom of the Perl Monks concerning the following question:
I'm getting the error "Use of uninitialised values..." from the following code:
There's probabaly something wrong there but I can't figure out what. How do I modify the code to rid the error message?my %hash = @_; $hash{'from'} ||= 0; if ($hash{'from'} eq 'main') { # code }
Thanks in advance :)
Update:Thanks to all. My apolgoies, the above snippet isn't the culprit, I'll look at other parts of the code to pinpoint where the error comes from. Will post the result here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help on uninitialised values
by davido (Cardinal) on Jul 28, 2004 at 15:45 UTC | |
by kiat (Vicar) on Jul 28, 2004 at 15:51 UTC | |
|
Re: Help on uninitialised values
by Aristotle (Chancellor) on Jul 28, 2004 at 16:17 UTC | |
|
Re: Help on uninitialised values
by ccn (Vicar) on Jul 28, 2004 at 15:53 UTC | |
|
Re: Help on uninitialised values
by keszler (Priest) on Jul 28, 2004 at 16:14 UTC | |
|
Re: Help on uninitialised values
by wfsp (Abbot) on Jul 28, 2004 at 15:49 UTC | |
by kiat (Vicar) on Jul 28, 2004 at 15:53 UTC | |
|
Re: Help on uninitialised values
by shemp (Deacon) on Jul 28, 2004 at 15:50 UTC |