This file contains hidden or 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 Test::More; | |
| my $x = 'x'x(1024*1024*10); | |
| while (1) { | |
| ok($x, $x); | |
| } |
This file contains hidden or 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 DBI; | |
| use YAML; | |
| my $dbh = DBI->connect('DBI:SQLite:'); | |
| #my $dbh = DBI->connect('DBI:mysql:test'); | |
| $dbh->do('CREATE TABLE hyoshiok ( dan BIGINT, kogai BIGINT )'); | |
| sub insert { |
This file contains hidden or 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
| (defun perl-insert-package () | |
| (interactive) | |
| (require 'perl-completion) | |
| (cond | |
| ((null buffer-file-truename) (error "no buffer-file-truename")) | |
| (t | |
| (let* ((s (replace-regexp-in-string | |
| (rx-to-string `(and bol ,(plcmp--get-lib-path) (? "/"))) | |
| "" | |
| (expand-file-name buffer-file-truename))) |
This file contains hidden or 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 Benchmark ':all'; | |
| use LWP::Simple; | |
| use Cache::Memcached::Fast; | |
| my $mc = Cache::Memcached::Fast->new({ servers => [ 'localhost:12321' ] }); | |
| cmpthese(10000, { |
This file contains hidden or 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 Benchmark ':all'; | |
| use LWP::Simple; | |
| use Cache::Memcached::Fast; | |
| use WWW::Curl::Easy; | |
| use WWW::Curl::Share; |
This file contains hidden or 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
| # PlackupTest.pm | |
| package PlackupTest; | |
| use strict; | |
| use warnings; | |
| use Plack::Up; | |
| use Plack::Response; | |
| sub hanlder { | |
| my $req = shift; | |
| my $body = qq{ |
This file contains hidden or 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
| # PlackupTest.pm | |
| package PlackupTest; | |
| use strict; | |
| use warnings; | |
| use Plack::Response; | |
| sub hanlder { | |
| my $req = shift; | |
| my $body = qq{ | |
| <h1>Welcome To Ksk World.</h1> |
This file contains hidden or 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
| package Cat; | |
| use strict; | |
| use warnings; | |
| use Data::Dumper; | |
| sub new { bless {}, shift } | |
| sub handler { | |
| sub { | |
| [ 200, [ 'Content-Type' => 'text/plain' ], [ Dumper(\@_) ] ]; | |
| } |
This file contains hidden or 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
| mattn: さいたまさいたまー? |
This file contains hidden or 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
| mattn: さいたまさいたまー? | |
| いえ、ちがいます | |
| すいません、どうやら人違いでした。 |