In your example, it seems the value is the empty string , which is defined. undef is undefined. To check for them, use
# empty string defined $value && '' eq $value # undefined ! defined $value
Check for definedness is needed in the first case, as `undef` stringifies to the empty string.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re: Checking for blank string
by choroba
in thread Checking for blank string
by Himaja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |