How to check if LVALUE represents SCALAR
For years, I am using a code that contains the following condition ref \$_[0] eq ‘SCALAR’ I always expect there an ARRAY or SCALAR, but recently I passed substr() into that parameter. Unexpected things happened. The condition returned a false value. Then I figured it out. The ref returned LVALUE instead of SCALAR. Since LVALUE… Read More How to check if LVALUE represents SCALAR