Think about Loose Coupling | |
PerlMonks |
Re: "Use of uninitialized value" due to empty elements in an arrayby chuckbutler (Monsignor) |
on Mar 31, 2010 at 14:14 UTC ( [id://832053]=note: print w/replies, xml ) | Need Help?? |
The defined function is what you need. It returns true if the value being tested IS NOT the special undef value. So something like:
ahead of your other tests should get the job done. Update: Fixed typo.. Good luck. -c
In Section
Seekers of Perl Wisdom
|
|