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.
In reply to Help on uninitialised values by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |