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
$what = "fred|barney"; | |
while(<STDIN>){ | |
if(/($what){3}/g){ | |
print "match\n\n"; | |
}else{ | |
print "no match\n\n"; | |
} | |
} |
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
$^I = ".out"; | |
while(<>){ | |
s/Fred/Larry/gi; | |
print; | |
} |
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
$^I = ".out"; | |
while(<>){ | |
s/Fred/not_using_word/gi; | |
s/Wilma/Fred/gi; | |
s/not_using_word/Wilma/gi; | |
print; | |
} |
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
chomp($tani = <STDIN>); | |
chomp($hyouka = <STDIN>); | |
$hyouka =~ s/A/4/g; | |
$hyouka =~ s/B/3/g; | |
$hyouka =~ s/C/2/g; | |
$hyouka =~ s/D/1/g; | |
$hyouka =~ s/F/0/g; | |
@list = split //, $hyouka; |
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
chomp($tango_num = <STDIN>); | |
while(<STDIN>){ | |
@w = split(//, $_); | |
@w = reverse(@w); | |
$s = join('', @w); | |
push @list , $s; | |
} |
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 5.12.0; | |
chomp(my $like = <STDIN>); | |
chomp(my $hate = <STDIN>); | |
my @like = split / /, $like; | |
my @hate = split / /, $hate; | |
my @waru; | |
my $i = 1; |
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
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<link href="./css/index.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#start").click( function() { | |
var tango = new Array(10); //単語の配列 |
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
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<link href="./css/index.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#enzan").click( function() { | |
var a = $("#start").val(); |
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; | |
use 5.12.4; | |
chomp(my $n = <STDIN>); | |
chomp(my @line = <STDIN>); | |
my $result = 0; | |
for my $now_point (@line){ |
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
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>speech test</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script> | |
function speechInput() { | |
var test = $("#get_voice").val(); | |
if(test.match(/my name is/)){ | |
alert("good! because include 'my name is'"); |
OlderNewer