in reply to Re^3: How to differentiate an empty array from an unitialized one?
in thread How to differentiate an empty array from an unitialized one?
What do you mean by "empty scalar"? The empty string? Note that it's a perfect value which you can print, measure its length, match against a regex, etc. Undefined value, on the other hand, means the value is missing. If you need to have a special value for "missing value" for the whole array, use an array reference, and assign undef if the whole array is "undefined".
($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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to differentiate an empty array from an unitialized one?
by dsheroh (Monsignor) on Jul 11, 2018 at 07:37 UTC |