Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: uninitialized errorby nvivek (Vicar) |
on Feb 27, 2013 at 05:40 UTC ( [id://1020803]=note: print w/replies, xml ) | Need Help?? |
Uninitialized error would raise, whenever you try to access the value of scalar, array or hash in perl. To validate it, as per moritz use defined function which would give false when the value is undefined. It is better to use string and warnings in a perl program to get warning messages and alert for undeclared scalars, arrays, hashes used in the program.
In Section
Seekers of Perl Wisdom
|
|