I am thinking you could evaluate the length of $value, such that a blank has a length of 0 and a 0 has a length of 1.
I looked quickly to see if I could find a function for the length of a variable, but could not find it.
edit, I found this
http://www.perldoc.com/...pod/func/length.html
I looked quickly to see if I could find a function for the length of a variable, but could not find it.
edit, I found this
http://www.perldoc.com/...pod/func/length.html