Last active
December 1, 2015 03:51
-
-
Save tomcha/16400440a457cbb520a1 to your computer and use it in GitHub Desktop.
28
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $i = 0; | |
print "0 か 1 を入力して下さい。>>>"; | |
$i = <STDIN>; | |
if ($i == 1 ){ | |
print "OK\n"; | |
}else{ | |
print "1 以外が入力されました。\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment