Last active
December 20, 2019 10:11
-
-
Save sironekotoro/1a64f69d2a65d32c4811ed1712ecc418 to your computer and use it in GitHub Desktop.
triple match
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; | |
use warnings; | |
my $charA = 'A'; | |
my $charB = 'B'; | |
my $charC = 'C'; | |
if ( $charA =~ 'A' && $charB =~ 'B' && $charC =~ 'C' ) { | |
print "match\n"; | |
} | |
else{ | |
print "not match\n"; | |
} | |
my $num1 = 1; | |
my $num2 = 2; | |
my $num3 = 3; | |
if ( $num1 == 1 && $num2 == 2 && $num3 == 3 ) { | |
print "match\n"; | |
} | |
else{ | |
print "not match\n"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment