SyntaxFix
Write A Post
Hire A Developer
Questions
To check for an empty string you could also do something as follows
if (!defined $val || $val eq '') { # empty }