Hi Himaja,
Could you show us your hash with Data::Dumper? E.g. use Data::Dumper; print Dumper(\%hash);
You check for definedness with defined, e.g. if (!defined $hash{key}). One way to check for an empty string is with length, e.g. if (!length $hash{key}), but make sure to check defined first, because length(undef) will also be false (and before Perl v5.12, will throw a warning).
Hope this helps,
-- Hauke D
In reply to Re: Checking for blank string
by haukex
in thread Checking for blank string
by Himaja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |