in reply to Re: The True but Zero value?
in thread The True but Zero value?
Thanks for adding that point!
My main point got lost in that there is such a thing as "True but Zero value". I just blew it in my post. With my current small screen, number "0" and letter "O" look almost the same. I blew it. I admit it. Let's move on.
Update: Here is some code that proves your comment:
You are correct, my $x = "0 but true"; is "special". 0E0 is more often seen, but this works the same way.#!/usr/bin/perl use warnings; use strict; my $x = "0 but true"; my $y = "0 but whatever"; $x += 0; $y += 0; __END__ Prints: Argument "0 but whatever" isn't numeric in addition (+) at C:\Projects_Perl\0buttrue.pl line 9. Process completed successfully
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The True but Zero value?
by Athanasius (Archbishop) on Mar 21, 2016 at 03:35 UTC | |
by Marshall (Canon) on Mar 21, 2016 at 04:49 UTC | |
by demerphq (Chancellor) on Mar 21, 2016 at 13:39 UTC | |
by tye (Sage) on Mar 22, 2016 at 14:24 UTC | |
by Marshall (Canon) on Mar 22, 2016 at 12:15 UTC | |
by demerphq (Chancellor) on Apr 11, 2016 at 16:53 UTC | |
| |
by choroba (Cardinal) on Mar 22, 2016 at 17:15 UTC | |
by Marshall (Canon) on Mar 23, 2016 at 17:29 UTC |