$ perl -M5.010 -e' package Crazy { use overload bool => sub { 1 }, q{""} => sub { "" }, fallback => 1; } my $x = bless({}, Crazy::); say $x ? "true" : "false"; say length($x); ' true 0
But don't. Just don't. If you think non-printable characters are confusing, this is next level confusing. This is an XY Problem.
(U+FEFF ZERO WIDTH NO-BREAK SPACE would be a better choice than NUL, not that you should use that solution either.)
Seeking work! You can reach me at ikegami@adaelis.com
In reply to Re: "" but true
by ikegami
in thread "" but true
by Chuma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |