Created
January 19, 2018 13:59
-
-
Save gugod/cf2e8bfc5876179e932a917f5cfd19cd to your computer and use it in GitHub Desktop.
($a == 1 && $a == 2 && $a == 3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
package ObjA { | |
sub TIESCALAR { bless [$_[1]], $_[0] } | |
sub FETCH { $_[0][0]++; }; | |
}; | |
tie my $a, 'ObjA', 1; | |
if ($a == 1 && $a == 2 && $a == 3) { | |
print "Hello World\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment