Created
December 1, 2015 09:10
-
-
Save tomcha/35922784487557daee6b to your computer and use it in GitHub Desktop.
31
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 $str = ''; | |
print "言語を入力して下さい。>>>"; | |
$str = <STDIN>; | |
chomp $str; | |
if ($str eq 'Perl'){ | |
print "Larry\n"; | |
}elsif ($str eq 'Ruby'){ | |
print "Matz\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment