undef as a Boolean
- Is this true or false?
undef
- False: It's not a number or a string so Perl converts it to a number. undef is 0 when treated like a number, and 0 is false.
| CPU: Perl, Fall 2005 | Perl, Week 2: Arrays, Hashes, Control Structures | #23 |
undef
| Copyright © 2005 Ian Langworth |