Skip to content

Instantly share code, notes, and snippets.

@tomcha
Last active December 1, 2015 03:51
Show Gist options
  • Save tomcha/16400440a457cbb520a1 to your computer and use it in GitHub Desktop.
Save tomcha/16400440a457cbb520a1 to your computer and use it in GitHub Desktop.
28
#!/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